 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Filipa Andrade Guest
|
Posted: Wed Nov 24, 2004 8:33 am Post subject: OpenGL in Borland C++ Compiler |
|
|
Hello,
I'm using the Borland C++ Compiler With Command Line Tools Version 5.5.1 but
I cannot configure opengl in my machine. I followed the instructions for
opengl usage in a couple of web
pages I still cannot compile the code because the compiler cannot find the
libraries > glut.h. I'm using win98 2E.
I really don't understand why it doens't work so I'm hoping someone could
help me! I have to do some work with this but I have no other machine...
Here is what I did in one of the try number 1 with the help of this site
http://sbenavides.tripod.com/OpenGL.html :
1. Extracted the compiler to C:BorlandBCC55
2. Add PATH=C:BORLANDBCC55BIN;%PATH%
to "autoexec.bat" file
3. Copy the header file "glut.h" to the BORLANDBCC55INCLUDEGL directory.
4. Copy "glut32.lib" into the BORLANDBCC55LIB directory.
5. Copy "glut32.dll" into the WindowsSystem directory.
6. create the bcc32.cfg and ilink32.cfg in bin
7. try to compile the file program1.cpp like this
| Quote: | bcc32 program1.cpp glut32.lib
but with no success, all the errors were due to undefined function or |
undefined symbol... because the compiler didin't get the library...
The I tried another site http://www.gantless.com/borland.html and I did what
they said:
1 to 3. same as previous example
4. copy the 4 dll files glut32.dll, opengl32.dll, glu32.dll and glut.dll to
c:windowssystem
5. used the implib comand to produce the .lib 4 files using the previous
dll's
6. tried to compile an example and the same errors apeared as previous
I think that's all. I really apreciate some help! The compiler is great and
without opengl it works fine for me.
Thanks in advance,
Filipa
|
|
| Back to top |
|
 |
JF Jolin Guest
|
Posted: Thu Nov 25, 2004 6:46 pm Post subject: Re: OpenGL in Borland C++ Compiler |
|
|
24 Nov 2004 09:33:17 +0100, Filipa Andrade <filipa (AT) tagus (DOT) ist.utl.pt> wrote:
| Quote: | Hello,
I'm using the Borland C++ Compiler With Command Line Tools Version 5.5.1
but
I cannot configure opengl in my machine. I followed the instructions for
opengl usage in a couple of web
pages I still cannot compile the code because the compiler cannot find
the
libraries > glut.h. I'm using win98 2E.
|
glut.h is an include file not a library file.
| Quote: |
I really don't understand why it doens't work so I'm hoping someone could
help me! I have to do some work with this but I have no other machine...
Here is what I did in one of the try number 1 with the help of this site
http://sbenavides.tripod.com/OpenGL.html :
1. Extracted the compiler to C:BorlandBCC55
2. Add PATH=C:BORLANDBCC55BIN;%PATH%
to "autoexec.bat" file
3. Copy the header file "glut.h" to the BORLANDBCC55INCLUDEGL
directory.
|
Default directory for include files is BORLANDBCC55INCLUDE
Modify the file BORLANDBCC55BINbcc32.cfg and change the include line
with
-I"...BORLANDBCC55INCLUDE ; ...BORLANDBCC55INCLUDEGL"
or
Do the above in all your MAKE files
| Quote: | 4. Copy "glut32.lib" into the BORLANDBCC55LIB directory.
5. Copy "glut32.dll" into the WindowsSystem directory.
6. create the bcc32.cfg and ilink32.cfg in bin
7. try to compile the file program1.cpp like this
bcc32 program1.cpp glut32.lib
but with no success, all the errors were due to undefined function or
undefined symbol... because the compiler didin't get the library...
The I tried another site http://www.gantless.com/borland.html and I did
what
they said:
1 to 3. same as previous example
4. copy the 4 dll files glut32.dll, opengl32.dll, glu32.dll and glut.dll
to
c:windowssystem
5. used the implib comand to produce the .lib 4 files using the previous
dll's
6. tried to compile an example and the same errors apeared as previous
I think that's all. I really apreciate some help! The compiler is great
and
without opengl it works fine for me.
Thanks in advance,
Filipa
|
Good luck
--
JF Jolin
[Montreal, Canada]
|
|
| Back to top |
|
 |
Filipa Andrade Guest
|
Posted: Mon Nov 29, 2004 8:04 pm Post subject: Re: OpenGL in Borland C++ Compiler |
|
|
Now that the include problem is resolved I have another compiling error:
[C++ Error] glut.h(146): E2337 Only one of a set of overloaded functions can
be "C"
The glut.h line 146 is:
extern _CRTIMP void __cdecl exit(int);
:( I looked for the resolution for this in the web but I could not find
it... I just think it as to do with the exit function redefinition...
Can someone help me?
Thanks,
Filipa
"JF Jolin" <jfj (AT) nospam (DOT) com> wrote
| Quote: | 24 Nov 2004 09:33:17 +0100, Filipa Andrade <filipa (AT) tagus (DOT) ist.utl.pt
wrote:
Hello,
I'm using the Borland C++ Compiler With Command Line Tools Version 5.5.1
but
I cannot configure opengl in my machine. I followed the instructions for
opengl usage in a couple of web
pages I still cannot compile the code because the compiler cannot find
the
libraries > glut.h. I'm using win98 2E.
glut.h is an include file not a library file.
I really don't understand why it doens't work so I'm hoping someone
could
help me! I have to do some work with this but I have no other machine...
Here is what I did in one of the try number 1 with the help of this site
http://sbenavides.tripod.com/OpenGL.html :
1. Extracted the compiler to C:BorlandBCC55
2. Add PATH=C:BORLANDBCC55BIN;%PATH%
to "autoexec.bat" file
3. Copy the header file "glut.h" to the BORLANDBCC55INCLUDEGL
directory.
Default directory for include files is BORLANDBCC55INCLUDE
Modify the file BORLANDBCC55BINbcc32.cfg and change the include line
with
-I"...BORLANDBCC55INCLUDE ; ...BORLANDBCC55INCLUDEGL"
or
Do the above in all your MAKE files
4. Copy "glut32.lib" into the BORLANDBCC55LIB directory.
5. Copy "glut32.dll" into the WindowsSystem directory.
6. create the bcc32.cfg and ilink32.cfg in bin
7. try to compile the file program1.cpp like this
bcc32 program1.cpp glut32.lib
but with no success, all the errors were due to undefined function or
undefined symbol... because the compiler didin't get the library...
The I tried another site http://www.gantless.com/borland.html and I did
what
they said:
1 to 3. same as previous example
4. copy the 4 dll files glut32.dll, opengl32.dll, glu32.dll and glut.dll
to
c:windowssystem
5. used the implib comand to produce the .lib 4 files using the previous
dll's
6. tried to compile an example and the same errors apeared as previous
I think that's all. I really apreciate some help! The compiler is great
and
without opengl it works fine for me.
Thanks in advance,
Filipa
Good luck
--
JF Jolin
[Montreal, Canada]
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|