• 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, 23: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: 138
    Location: Hungary

        

    Postby linuxwolf 17 Dec 2016, 08: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

     
    Posts: 5043
    Location: Australia

        

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

    Postby Officer-Michael John 17 Dec 2016, 12: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: 138
    Location: Hungary

        

    Postby linuxwolf 18 Dec 2016, 01:42

    You need main. Check book how to add main entry point routine..
    linuxwolf
    User avatar

     
    Posts: 5043
    Location: Australia

        

    Postby Officer-Michael John 18 Dec 2016, 11: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: 138
    Location: Hungary

        

    Postby linuxwolf 18 Dec 2016, 14:18

    Compile as console application, not Windows app.
    linuxwolf
    User avatar

     
    Posts: 5043
    Location: Australia

        

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

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

     
    Posts: 138
    Location: Hungary

        

    Postby linuxwolf 18 Dec 2016, 16:39

    What IDE are you using?
    linuxwolf
    User avatar

     
    Posts: 5043
    Location: Australia

        

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

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

     
    Posts: 138
    Location: Hungary

        

    Postby linuxwolf 19 Dec 2016, 12:24

    My assistance only goes so far as C/C++ programming language itself.
    linuxwolf
    User avatar

     
    Posts: 5043
    Location: Australia

        

    Next

    Return to General Wolf3D/modding Discussion and tutorials


    Who is online

    Users browsing this forum: No registered users and 1 guest