How to create midas.obj from midas source code

I recently discovered a problem on midas , and I fixed it, the problem is that I want to use MidasLib and not midas.dll and with the source code I can only create a DLL.

C ++ is the source, and there is very little knowledge with it. I know that MidasLib.pas uses internally midas.obj, so I need to create it to statically link midas with my application. How to do it in C ++ Builder? (XE)

+7
source share
1 answer

When compiling C ++ code, the compiler creates a .OBJ file for each .CPP / .C file that you have and saves them somewhere on your computer. What happens in most cases is that in all of these .OBJ files, you can use the linker to merge into a single EXE or DLL, but in this case you do not need these results. Your C ++ Builder, like most software IDEs, automatically performs both compilation and linking.

If you just want .OBJ, you need to find where in your project folder C ++ Builder places its .OBJ files (called "intermediate output", as a rule, since this is an intermediate step between compilation and linking). Therefore, you must have a source file named midas.cpp or midas.c that creates the corresponding output file named midas.obj.

+1
source

All Articles