Board index » cppbuilder » Code generated with makefile not the same as code generated with IDE
Ren?Bųje Nielsen
CBuilder Developer |
Code generated with makefile not the same as code generated with IDE2004-04-19 11:13:51 PM cppbuilder3 Hi, I have a project (BCB v. 6 update 4) that I would like to compile on the command-line rather than using the IDE. Therefore I exported a Makefile, and tried to $(BCB)/make -f mylib.mak The resulting .LIB file is afterwards statically linked into another project (resulting in myproj.dll). This two-step process works fine from the IDE, but not from the command line: The linker (generating myproj.dll) produces several "Error: Unresolved external '_my_func'" error messages. The unresolved externals all stem from the same source file. Doing a TDUMP (and a grep) on both libraries yield: 426E01 PUBDEF '_my_func' Segment: _TEXT:0043 on the library build with the IDE and 31CE50 EXTDEF 1 : '_my_func' Type: 0 with the one build from the command line. So it looks as if the function is not made public for some reason. Any clue? Is there any way to see the exact command line executed by the IDE when compiling (which I suspect is different from the command line executed when doing a make from the command line, since it doesn't work)? /Ren?Bųje Nielsen P.S. The LIB-makefile's flag section contains the following: # -------------------------------------------------------------------------- - CFLAG1 = -Od -Hc -Vx -Ve -X- -r- -a8 \ -b- -k -y -v -vi- -c -tW -tWM IDLCFLAGS = PFLAGS = -N2..\obj\bcb -N0..\obj\bcb -$YD -$W -$O- -$A8 -v -JPHNE -M RFLAGS = AFLAGS = /mx /w2 /zd LFLAGS = -l..\obj\bcb /P128 /C # -------------------------------------------------------------------------- - |