Board index » cppbuilder » How to generate .lib with ilink32 ?
PC Hua
![]() CBuilder Developer |
How to generate .lib with ilink32 ?2004-11-29 06:24:33 AM cppbuilder92 I'm trying to compile SDL.dll (open source library) on BCB5. After modifying the makefile, a SDL.dll and a SDL.lib are generated. If I link MY SDL.lib (~6KB) in my program there are lots of external objects cannot be resolved. If I use MY SDL.dll and someone's SDL.lib (~20KB) there's no error message. I believe this is not the right way. But everything SEEMS alright for few months. But now, my program crashes and BCB shows me somewhere in memory.stl file when a 'new' tries to allocate an object from the library. I've got some questions: 1) Am I right, that lib-file is used to tell the program about all the external objects which will be loaded from the dll-file? 2) Can I use a lib-file from other compiler with my dll-file? 3) I'm using ilink32 of BCB5. In the online help, I found /Gl for generating lib-file. But in my makefile it's using -Gi . When I change it to /Gl no lib-file was generated and I can't find Gi anywhere. Is -Gi correct? 4) Obviously, my lib-file is missing a lot of infoemation (also too small). Since I've only adapted the makefile to my compiler I guess that all the obj-files are linked. What am I doing wrong so that so many unresolved objects found when I used my own lib-file? thanks in advance Phuoc Can HUA -- _/\__/\__/\__/\__/\__/\_ www.folksfun.com |