Thread: Compile Problems

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    411

    Compile Problems

    Im trying to compile NeHe's Basecode 2 with the borland free compilers, and I am haveing no luck.

    Instead of a main function like normal, it has this

    int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)

    I dont know what to do to get it to compile.

    I think I need to configure my compiler differently.

    I get several warnings in the NeHeGL.cpp file, but the only error is "unresolved external main referenced from cox32.obj"

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    I'm not familiar with the compilers but you'll have to compile the project as a Windows application instead of a console one.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. VC++ 2005 Beta Compile problems
    By mrowlings in forum C++ Programming
    Replies: 5
    Last Post: 03-28-2005, 04:02 PM
  2. Compatibility Problems with Dev-C++
    By Razorblade Kiss in forum Tech Board
    Replies: 3
    Last Post: 12-18-2004, 04:15 PM
  3. Compile problems
    By Noxir in forum C++ Programming
    Replies: 5
    Last Post: 08-17-2004, 09:23 AM
  4. Linux To FreeBSD Porting Compile Problems
    By Geolingo in forum Linux Programming
    Replies: 4
    Last Post: 03-17-2004, 08:17 AM
  5. problems with gtk+, and xlib
    By Ian in forum Linux Programming
    Replies: 3
    Last Post: 12-02-2001, 06:43 AM