VC++ with BCC55
Hi,
I''m new to VC++. I''ve compiled the tutorials of NeHe with
BCC55 until lesson05 evreything went well (except some warnings).
Lesson06 (texture loading) cannot compile
command : bcc32 -tW Lesson.6cpp
Error: Unresolved external ''auxDIBImageLoadA'' referenced from LESSON6.OBJ
Can anybody Help ? Thnx.
Are you linking all of the correct libraries with the project?
You should be linking:
- OpenGL32.lib
- GLU32.lib
- GLAUX.lib
This should correct the unresolved external if there aren't any other problems... Although, as I haven't used the borland compiler in quite some time (not since I bought Visual C++)
Note: I should also note that I am not much of an OpenGL programmer, I've just started learning OpenGL myself, trying to take the big leap to 3D, but this sounds more like a linker issue.
DracosX:
Master of the General Protection Fault
[edited by - DracosX on July 3, 2002 3:24:59 AM]
You should be linking:
- OpenGL32.lib
- GLU32.lib
- GLAUX.lib
This should correct the unresolved external if there aren't any other problems... Although, as I haven't used the borland compiler in quite some time (not since I bought Visual C++)
Note: I should also note that I am not much of an OpenGL programmer, I've just started learning OpenGL myself, trying to take the big leap to 3D, but this sounds more like a linker issue.
DracosX:
Master of the General Protection Fault
[edited by - DracosX on July 3, 2002 3:24:59 AM]
DracosX:Master of the General Protection Fault
the header files are all present in Include/Gl directory of bcc55 ( )
I''m linking all Lib directories in bcc32.cfg (in bin directory)
and the files you''ve mentioned are in the Lib/PSDK directory...
Anything i''ve missed up ?
I''m linking all Lib directories in bcc32.cfg (in bin directory)
and the files you''ve mentioned are in the Lib/PSDK directory...
Anything i''ve missed up ?
the problem is that EVERYBODY uses MSVC++ ... everybody uses microsoft (as a system, to program your demos, to watch your movies, to type your texts, to browse thru internet - everywhere microsoft !). So nobody can help or support you. They gave up.
I resist using it but sometimes you cannot help it.
As for your problem: are you using some kind of IDE for that, or just command line? If I know that I can provide more help.
One thing's for sure - you haven't linked glaux.lib (this library is for bitmaps). This isnt DLL so you got to add it to your project (you can download DLL though). Do that by rightcliking in your project manager(CBuilder, BorlandIDE) or adding a command in your linker options (-lglaux in DevC++ IDE).
More things to come : due to the fact that everybody uses microsoft tools libraries are done for MSVC not for Borland you can see an error message like "your librabry has wrong header" etc etc
you gotta have proper libraries - Borland specific (available over net), just use Borland ports of the tutorials
Last thing - remove pragma directives (those with libraries) from sources (they are VC specific and cause an liner error)
It took me a lot of time to figure out how to compile and link VisualC++. This is terrible that we support MS, open your eyes damnit!
take care
Pet
[edited by - Pet on July 3, 2002 7:07:29 AM]
I resist using it but sometimes you cannot help it.
As for your problem: are you using some kind of IDE for that, or just command line? If I know that I can provide more help.
One thing's for sure - you haven't linked glaux.lib (this library is for bitmaps). This isnt DLL so you got to add it to your project (you can download DLL though). Do that by rightcliking in your project manager(CBuilder, BorlandIDE) or adding a command in your linker options (-lglaux in DevC++ IDE).
More things to come : due to the fact that everybody uses microsoft tools libraries are done for MSVC not for Borland you can see an error message like "your librabry has wrong header" etc etc
you gotta have proper libraries - Borland specific (available over net), just use Borland ports of the tutorials
Last thing - remove pragma directives (those with libraries) from sources (they are VC specific and cause an liner error)
It took me a lot of time to figure out how to compile and link VisualC++. This is terrible that we support MS, open your eyes damnit!
take care
Pet
[edited by - Pet on July 3, 2002 7:07:29 AM]
Pet
Pet,
I''m just using command line of BCC55 (CBuilder was too long to download) I''ve downloaded glaux.lib and use -lglaux option in vain ?!
Another thing, i''m a Java programmer who want to write a fancy screensaver for a friend using MSWindows. I dont''t want to use
VC++ but the Tutorial of NeHe (which i like vm) do so .
thnx for further help...
I''m just using command line of BCC55 (CBuilder was too long to download) I''ve downloaded glaux.lib and use -lglaux option in vain ?!
Another thing, i''m a Java programmer who want to write a fancy screensaver for a friend using MSWindows. I dont''t want to use
VC++ but the Tutorial of NeHe (which i like vm) do so .
thnx for further help...
to be exact:
Command: bcc32 -tW -l glaux.lib Lesson6.cpp
Error: GLAUX.LIB'' contains invalid OMF record, type 0x21 (possibly COFF)
Command: bcc32 -tW -l glaux.lib Lesson6.cpp
Error: GLAUX.LIB'' contains invalid OMF record, type 0x21 (possibly COFF)
that''s what I''m talking about ...
your version of gluax.lib was created for VC++ (coff) and you need Borland version (OMF) you can download it from Nehe site somewhere around tutorials (check Borland port for a tutorial that uses bitmaps, library should be there as far as I remember)
I searched for you and you can also obtain it from here : http://www.gate.net/~rpraver/glaux.zip
ask me for more
good luck
Pet
your version of gluax.lib was created for VC++ (coff) and you need Borland version (OMF) you can download it from Nehe site somewhere around tutorials (check Borland port for a tutorial that uses bitmaps, library should be there as far as I remember)
I searched for you and you can also obtain it from here : http://www.gate.net/~rpraver/glaux.zip
ask me for more
good luck
Pet
Pet
You can check wheather a .lib file is for VC or not... just open it in your hex viewer (or a notead). If you can see "< arch >" string at the begining of a file it means that it has been made for VC++
hope I helped
Pet
[edited by - Pet on July 3, 2002 9:06:19 AM]
hope I helped
Pet
[edited by - Pet on July 3, 2002 9:06:19 AM]
Pet
Thnx, again Pet. I''ve found the right glaux.lib with Lesson6
(I had it since yesterday) It works.
Now one more question, if i try to compile the Borland code of the tutorials it does not work the compiler cannot find vcl.h
Do i need CBuilder ? it has not the same compiler then BCC55 free?
(I had it since yesterday) It works.
Now one more question, if i try to compile the Borland code of the tutorials it does not work the compiler cannot find vcl.h
Do i need CBuilder ? it has not the same compiler then BCC55 free?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement