• View unanswered postsView active topics

  • Coding helps need for Me on my Wolf 3D works

    Discuss Wolf3D and Wolf3D modding/ports

    Postby Officer-Michael John 14 Dec 2016, 22:53

    Hi members! I work on many Wolf 3D mod +2 convert to SDL. I found so problems whats I can‘t fixing. :(
    Please help for Me. I not like working on many mod.

    Thanks:Officer-Michael John.
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        

    Postby linuxwolf 17 Dec 2016, 07:15

    You need to learn C/C++. If you have any questions on C/C++ ask here. I will help with C/C++. I will NOT help with Wolf3d feature coding.
    linuxwolf
    User avatar
    Team RayCast member
    Team RayCast member
     
    Posts: 5732
    Location: Australia

        

    The following user would like to thank linuxwolf for this post
    Officer-Michael John

    Postby Officer-Michael John 17 Dec 2016, 11:37

    Already started to learn C++ programming. I got a PDF file which provides the C++ programming. I like compiling,but I get an Error:[Linker error] undefined reference to `WinMain@16'

    Here it code:

    Code: Select all
    double sqrt(double arg)
    {
      //the square root calculation code
    }

    void f()
    {
      double root2 = sqrt(2);
      //...
    }
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        

    Postby linuxwolf 18 Dec 2016, 00:42

    You need main. Check book how to add main entry point routine..
    linuxwolf
    User avatar
    Team RayCast member
    Team RayCast member
     
    Posts: 5732
    Location: Australia

        

    Postby Officer-Michael John 18 Dec 2016, 10:32

    I added main.

    Code: Select all
    #include <iostream>

    int main()
    {
    //  std::cout << "Hello world!\n";
    }

    double sqrt(double arg)
    {
      //the square root calculation code
    }

    void f()
    {
      double root2 = sqrt(2);
      //...
    }
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        

    Postby linuxwolf 18 Dec 2016, 13:18

    Compile as console application, not Windows app.
    linuxwolf
    User avatar
    Team RayCast member
    Team RayCast member
     
    Posts: 5732
    Location: Australia

        

    Postby Officer-Michael John 18 Dec 2016, 15:25

    How do I set it to not turn off for Windows app?
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        

    Postby linuxwolf 18 Dec 2016, 15:39

    What IDE are you using?
    linuxwolf
    User avatar
    Team RayCast member
    Team RayCast member
     
    Posts: 5732
    Location: Australia

        

    Postby Officer-Michael John 18 Dec 2016, 16:43

    I use Dev C++ compiler on programming and coding.
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        

    Postby linuxwolf 19 Dec 2016, 11:24

    My assistance only goes so far as C/C++ programming language itself.
    linuxwolf
    User avatar
    Team RayCast member
    Team RayCast member
     
    Posts: 5732
    Location: Australia

        

    Postby Officer-Michael John 19 Dec 2016, 21:48

    What do I learn from C++?
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        

    Postby linuxwolf 19 Dec 2016, 22:41

    Learn these topics:

      - Classes
      - Class constructors/destructors
      - Standard containers (e.g., std::vector, std::map)
      - Namespaces
      - Defining templates
      - Operator overloading
      - Polymorphism and class inheritance
      - Parameter passing by value, by reference and by pointer
      - Const vs non-const
    Any good book on C++ will cover those.

    Learn C before C++.

    When you are good at C/C++ then you can fix as much bugs as you like. Enjoy.
    linuxwolf
    User avatar
    Team RayCast member
    Team RayCast member
     
    Posts: 5732
    Location: Australia

        

    Postby Officer-Michael John 20 Dec 2016, 10:59

    Already started to learn Classes topic.

    For 1st Easy Classes.
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        

    Postby linuxwolf 20 Dec 2016, 12:57

    Good.
    linuxwolf
    User avatar
    Team RayCast member
    Team RayCast member
     
    Posts: 5732
    Location: Australia

        

    Postby Officer-Michael John 20 Dec 2016, 13:57

    I'll tell you I do not know or do not understand.
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        


    Return to General Wolf3D/modding Discussion and tutorials


    Who is online

    Users browsing this forum: No registered users and 4 guests

    cron