Compile Problems

This is a discussion on Compile Problems within the C++ Programming forums, part of the General Programming Boards category; Im trying to compile NeHe's Basecode 2 with the borland free compilers, and I am haveing no luck. Instead of ...

  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
    zen
    zen is offline
    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, 10:23 AM
  4. Linux To FreeBSD Porting Compile Problems
    By DeepBlackMagic 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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21