MantisBT - CMake
View Issue Details
0015862CMakeCMakepublic2015-11-25 02:162016-06-10 14:31
julian1844 
Kitware Robot 
normalfeaturealways
closedmoved 
mngwwindowsall
CMake 3.3.2 
 
0015862: Compiles to obj intead of to o object files
When compiling a library by mingw C++ (all recent versions), it produces object files with the obj file extension instead of the expected o extension. The problem is that the linker (ld) cannot link the resulting library because it contains obj files, while it expects o files.
No tags attached.
Issue History
2015-11-25 02:16julian1844New Issue
2015-11-25 06:06d3x0rNote Added: 0039910
2016-06-10 14:29Kitware RobotNote Added: 0042892
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0039910)
d3x0r   
2015-11-25 06:06   
mingw C++ compiles to .obj files by default; and should since they're COFF files not ELF.
It'd be like saying you expect it to produce .a and .so files; this is probably a user error....

What error are you actually getting?
(0042892)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.