View Full Version : Help?

01-30-2004, 08:55 PM
Ok this is my problem. I am having a compiling promblem trying to create my first window for an OpenGL program. I am using the the first tutorial from nehe.gamedev.net (http://nehe.gamedev.net) . I am using C++BuilderX 6 and have followed this tutorial and have finished finally. I have corrected all of my mistakes yet I still have this one little error that happens everytime I compile it.
"ilink32 -D -ap -Tpe -x -Gn -v -LC:\CBuilderX\lib c0x32.obj windows\Debug_Build\GLWindow.obj,"C:\Documents and Settings\Dylan Snowden\cbproject\test-1\windows\Debug_Build\test-1.exe",,cw32.lib import32.lib,,
Turbo Incremental Link 5.65 Copyright (c) 1997-2002 Borland

Error: Unresolved external '_main' referenced from C:\CBUILDERX\LIB\C0X32.OBJ"

What could be the prob?

Leyder Dylan
01-31-2004, 01:43 AM
Your project is in "console" mode, so you need to change i into "windows" mode. But I don't know how to do that for your builder.

01-31-2004, 01:02 PM
Well at the beginning of the project you can choose a Source File. I choose C++. I dont choose console. Maybe Windows isnt associated with the compiler?

02-01-2004, 03:28 PM
I figured it out. With C++Builder 6 you have to choose GUI Application as a project. Thanks anyway man.