User forums > Using Code::Blocks

Linking separate object files to get .map files

(1/2) > >>

21region:
I've compiled different .cpp files in one project and got .o files. In the linking stage they are tried to be combined in a singe executable. But, as they're  not supposed to be built in one project (every .cpp file deserves it's own project), I get a lot of linking errors. And that's ok.

What I want is to build every .cpp file separately and get it's .map file. Is there any check button for doing this?
Thanks in advance.

oBFusCATed:
What is this map file?
You can disable the linking of a file by "Right clicking on it-> Properties -> Build -> Link file"

21region:

--- Quote from: oBFusCATed on February 18, 2012, 05:56:45 pm ---What is this map file?
You can disable the linking of a file by "Right clicking on it-> Properties -> Build -> Link file"

--- End quote ---
http://en.wikipedia.org/wiki/MAP_(file_format)

I don't need disabling linker. I need linker to go through all of .o files and generate .map for every one of them.

oBFusCATed:
If you're using the gcc compiler you won't be able to do it, I think, because gcc is producing debug information in dwarf format not coff or map (or whatever vc++ is producing).
You'll have to read the manual to see what options are available to you about reading the symbols.

MortenMacFly:

--- Quote from: oBFusCATed on February 19, 2012, 11:55:22 am ---You'll have to read the manual to see what options are available to you about reading the symbols.

--- End quote ---
...not to forget about the "SymTab" plugin (symbol table plugin) which utilises the GCC nm tool for symbols...

Navigation

[0] Message Index

[#] Next page

Go to full version