PDA

View Full Version : Problems loading a bitmat



Psyc
10-28-2001, 04:21 AM
i downloaded and tested the bitmat code from NeHe's openGL site, and i got a initinalization error. That is because the bitmat didnt load. i error tested this and found out for sure thats the problem.
i use Dev-C++

also, with that i get the following warnings.. anyway i could fix these?:

C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj/i386/image.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj/i386/image.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj/i386/image.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj/i386/tkimage.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj/i386/tkimage.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj/i386/tkimage.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj/i386/tkimage.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj/i386/tkimage.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj/i386/tkimage.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj/i386/tkdib.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj/i386/tkdib.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj/i386/tkdib.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'
C:\DEV-C_~1\Bin\ld.exe: C:\mIRC\download\Glaux.lib(obj\i386\tk.obj): warning: ignoring duplicate section `.text'

Can anyone help me? i need help with this one.. X_X

chowe6685
10-28-2001, 05:37 AM
I'm not sure exactly why you are having trouble, but it is most likely because the glaux.lib library doesn't seem to work well with non microsoft compilers. What you should do is either write your own bitmap loading routine, or use the code on NEHE's site to load .tga files, that doesn't use glaux at all.

rpxmaster
10-29-2001, 09:13 PM
There's this one program on NeHe's site (I know the collision detection one does this) that only allows you to load 24-bit color bitmaps. The bitmap you're trying to load must not be 24-bit color then, for instance, it might be in 256 color or something. Try opening the image with MS Paint and saving it as a 24-bit color *.bmp. That might help.