PDA

View Full Version : Scene conversion problems



ThinIce
03-25-2002, 03:40 PM
Hello,
I just made a post on importing a scene (model) to OpenGL. I am using an application called "3D4WIN". I converted an .ASE file to C/c++, and I keep recieving this error in the build:

LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/54654654.exe : fatal error LNK1120: 1 unresolved externals


I do not know what is wrong. I reinstalled MSVC++, but no luck. Any suggestions on how to fix?


Thanks in advance.

[This message has been edited by ThinIce (edited 03-25-2002).]

[This message has been edited by ThinIce (edited 03-25-2002).]

chowe6685
03-25-2002, 05:19 PM
you have created a console app and so the compiler expects
void main()
{
}

you probably have int WinMain(...) instead

ThinIce
03-25-2002, 05:37 PM
I converted it from console to Win32 app, and I get this:

LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/test.exe : fatal error LNK1120: 1 unresolved externals

Bob
03-26-2002, 02:20 AM
Do you have a main or a WinMain function at all?

I have a funny feeling you are trying to build an executable from a code meant to be built as a library file.