Subj : Re: Linking object files ?? To : borland.public.cpp.borlandcpp From : Szakats Istvan Date : Fri Dec 31 2004 12:03 am Ed Mulroy [TeamB] wrote: > You must determine the memory model of the file you wish to use. It must be > the same as that used for your code. > > From within the IDE create a project, set the options including memory model > and add both your files and the object file to the project. > > If working from the command line then, assuming that yours1.c and yours2.cpp > and yours3.asm are your files and other.obj is the other file then this > command should compile and link them: > > bcc -f -v -m? yours1.c yours2.cpp yours3.asm other.obj > > but only if you substitute the lower case first letter of the memory model > for the '?' above. (models are small, medium, compact, large, huge). > > . Ed > Thanks! My problems aren't fully solved yet but atleast now i get different errors :). It's interesting that i could'nt find 'new project' anywhere in the gui (bc++3.1), but i did find 'open project' so i opened a different project and changed it to my needs. I added a .cpp and the .obj and now it can't find any includes Unable to open include file ... Everything should be correct because if i compile the same .cpp when not inside a project, the headers are found but i get the unidentified symbols. Do i have to add the header files to the project as well ? Steve .