Archived

This topic is now archived and is closed to further replies.

Linker error Borland C++ 5.5 Free Compiler

This topic is 5877 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, The linker gives errors on all the functions associated with GLut. The remaining GLu and OpenGL functions are linked properly. I have the lib path setup properly and the glut32.lib file is present in the lib folder. What causes this problem. p.s: I am new to BC++ TIA Amresh ramresh@dsqsoft.com

Share this post


Link to post
Share on other sites
Hi! I am an Brazilian guy and I have some problems with the Free Compiler Borland 5.5 too, but I fixed them!!

First, creat a file named "bcc32.cfg" in the Notepad or other text editor with these lines:

-I"E:\USERS\RAFAEL\Programas\bcc55\include"
-L"E:\USERS\RAFAEL\Programas\bcc55\lib"
-DWINVER=0x0400
-D_WIN32_WINNT=0x0400

Now you have to create other one, but name it now of ilink32.cfg:

-L"E:\USERS\RAFAEL\Programas\bcc55\lib"

If you make all right, it''s gonna to work...
But now you have to DownLoad TWO Services Pack from Borland:
Here are the www:

Service Pack 1:
http://www.borland.com/devsupport/bcppbuilder/patches/bcc55/bcc55sp1.zip

Service Pack 2:
http://www.borland.com/devsupport/bcppbuilder/patches/bcc55/bcc55sp2.exe

If you wanna be informed by more patches, the main page is:
http://www.borland.com/devsupport/bcppbuilder/patches/

Help and Faqs is at:
http://www.borland.com/techpubs/bcppbuilder
http://www.borland.com/devsupport/bcppbuilder/

I hope you made it!!!


Rafael G. Donato

Share this post


Link to post
Share on other sites
I still get the unresolved external symbol on all the glut functions.
I have tried the making the bcc32.cfg and ilink32.cfg with the include and lib paths, and also the following command line:
bcc32.exe -Id:\borland\bcc55\include -Ld:\borland\bcc55\lib Test.cpp
but I still get the unresolved external symbol.
I also downloaded the service packs 1 and 2.
TIA



Amresh
ramresh@dsqsoft.com

Share this post


Link to post
Share on other sites
Xiiiiiiiiiiii...

The only way to make it work is going to download all libs and includes from Glut/OpenGL

You can find it on www.opengl.org

I will try to discover what went wrong!
Good Lucky!!!

Rafael G. Donato

Share this post


Link to post
Share on other sites
Try explicitly naming your libraries in the command line:
bbc32 -W -Id:\borland\bcc55\include -Ld:\borland\bcc55\lib Test.cpp glaux.lib other.lib e.t.c

(p.s. -W, only if this is a windows program - i.e. has a winmain instead of a main function)

Share this post


Link to post
Share on other sites