Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - linking Borland C++ 3.1 libraries in 16 bit DOS mode
I can't link a Borland C++ 3.1 library to link my DOS executable. Is it possible at all? I use one of library functions in my "main". The linker says that it doesn't see the function, although it doesn't complain about the format of .lib file. Are there any linker (compiler) switches that make things work? Michal May 08 2003
What are you trying to do? Link a Borland C++ 3.1 DOS library into a Digital Mars C++ generated DOS executable? Which functions do you need??? Micha³ Kandulski wrote:I can't link a Borland C++ 3.1 library to link my DOS executable. Is it possible at all? I use one of library functions in my "main". The linker says that it doesn't see the function, although it doesn't complain about the format of .lib file. Are there any linker (compiler) switches that make things work? Michal May 08 2003
I can't link a Borland C++ 3.1 library to link my DOS executable. Is it possible at all? I use one of library functions in my "main". The linker says that it doesn't see the function, although it doesn't complain about the format of .lib file. Are there any linker (compiler) switches that make things work? Michal May 08 2003
user domain.invalid wrote:>>I can't link a Borland C++ 3.1 library to link my DOS executable. >> >>Is it possible at all? >> >>I use one of library functions in my "main". The linker says that it doesn't see >>the function, although it doesn't complain about the format of .lib file. >> >>Are there any linker (compiler) switches that make things work? >> >>Michal >What are you trying to do? Link a Borland C++ 3.1 DOS library into a Digital Mars C++ generated DOS executable? Which functions do you need??? May 08 2003
Jan Knepper wrote:1) I've got a commercial library (designed for a laser bar code scanner). It works fine with Borland C++ 3.1 compiler. May 09 2003
user domain.invalid a écrit: . . .4) While I link the library with an OBJ that contains a call to a certain function, the linker does not see the function, although the library contains it for sure. That's my problem. Michal May 08 2003
roland wrote:> 4) While I link the library with an OBJ that contains a call to a certain > function, the linker does not see the function, although the library > contains it for sure. > > That's my problem. > > Michal > check name mangling or leading underscore. generate the assembly listing (.cod) to see what is the real name of the function the compiler is calling. you can also generate a .map file. hope the functions in the .lib are pure C (no name mangling). declare the function as extern "C" example: extern "C" int myfunc(int myarg); roland May 09 2003
|