Главная страница | назад





Article #17854: USEOBJ problem

 Question and Answer Database
FAQ2854C.txt USEOBJ problem
Category :IDE
Platform :Win95/NT
Product : C++Builder3.x
Question:
When I add an OBJ file into my project the IDE adds a line that says :
USEOBJ "my.obj"
but nothing gets added to the makefile and as a result I get unresolved externals or undefined symbols.
Answer:
There is a known problem with the USEOBJ directive
You can work around it by using
#pragma link "my.obj"
or by using TLIB.EXE to make a library (.LIB) file out of your OBJ and then adding in the library.
The problem is specific to .OBJ files, .LIB files work just fine.
8/18/98 8:55:02 AM

Last Modified: 01-SEP-99