Advertisement

Bug with using BCB5

Started by April 23, 2002 08:37 PM
4 comments, last by mmarshall 22 years, 10 months ago
I have been suffering from a bug using BCB5 with OpenGL. Whenever I try to compile my program, I recive error number E2337: ''Only one of a set of overloaded functions can be "C"''. This happens at line number 140 in glut.h which reads "extern _CRTIMP void __cdecl exit(int);". Following are a ton of errors from the file streambu.h. I have no idea what is causing this. I have tried undoing all the things I changed since this started, but nothing has worked. I have tried commenting out large sections of code, tring to find the problem. On top of all this, I am not even using glut, and I can not find where glut.h is included! Is the problem with streambu.h? (What is it for, anyway?) Has anybody else had this problem? I would really appricaiate some help here.
Email me the project and I''ll try it on my version of BCB5. I''ve used BCB5 for OpenGL without much trouble. I''ll post my findings here.
Advertisement
I''m able to get it to compile,link, and execute. I tried sending the changes to your email address but it bounced?
I got your message, however, it you don''t seem to have the same problem that I do. Do you suppose one of my files got messed up? Would it help to reinstall BCB?
It isn''t very likely that one of the files you are having problems with got corrupted, but it is possible. If it isn''t too hard for you to reinstall BCB5 with the SP applied, then try that and let me know the results. I still have your project in case I need to try anything else out.
Well, I suppose I have an interesting bug-busting story here. I reinstalled BCB, but that did nothing. Therefore, I set out to find out just what streambu.h was, and where it was included in my program. This I accomplished by renaming streambu.h and finding where “can not find include file” error message occurred. The file was included in another file that I had no idea of its purpose, which was included in another file. After doing this for about four files, I came to a file named main.h. There I just commented out the inclusion and closed the file. However, when I tried compiling it again, the same thing happened in another file. Now, I had been using the Shining3d class from the 6th game tutorial at NeHe’s site for image loading, vectors, and a couple of other things, so I figured that main.h was the header file for main.cpp. However, when I went to find the file again, to see if I even needed it, I couldn’t find it! I did a search on my hard drive, for files named main.h that were modified within the last day. The only one found was the one that was part of the source of the physicsz demo from GameDev.net’s physics contest. I deleted the source, and my program compiled and linked! At one time, I had opened one of the source files for physicsz, while BCB was minimized, while it had my project open. The funny thing is, in the ‘remove from project’ dialog box, the only units listed were the ones I wanted, and the unwanted files weren’t missed after I deleted them! The program worked on your (Shannara) computer, because you lacked files.
Notice that I said that the program compiled and linked. It did not execute, nor did it produce an .exe file. In fact, it seems that the previous file was deleted. I have had this problem before, but it was with a project I had worked maybe 30 minuets on, so I just deleted it. Does any one know what the problem is?

This topic is closed to new replies.

Advertisement