User forums > Using Code::Blocks

tdm-gcc 32/64 bit targets under windows

<< < (2/2)

stahta01:
I think he is building both 32 bit and 64 bit targets in the same project.

That was what I based my suggestion on.

Tim S.

Jenna:

--- Quote from: stahta01 on July 12, 2014, 05:31:57 pm ---I think he is building both 32 bit and 64 bit targets in the same project.

That was what I based my suggestion on.

Tim S.


--- End quote ---
You can have different compilers for different targets.

stahta01:

--- Quote from: jens on July 12, 2014, 05:38:52 pm ---
--- Quote from: stahta01 on July 12, 2014, 05:31:57 pm ---I think he is building both 32 bit and 64 bit targets in the same project.

That was what I based my suggestion on.

Tim S.


--- End quote ---
You can have different compilers for different targets.

--- End quote ---

Yeah, but, having different CB Compilers for the same real world compiler seems wrong to me.

But, I would do it with two compilers myself; because I do NOT wish to have issues where MinGW64 headers are required to build a project by accident.

Tim S.

Russell:
Hi All

I am using the standard tdm-gcc toolchain, which according to the manual: "TDM-GCC is a multilib bootstrap of GCC's x86_64-w64-mingw32 target, built to run on 32-bit or 64-bit Windows and generate binaries for 32-bit or 64-bit Windows.", I believe this is the same toolchain used to build the codeblocks nightlies.

I am using tdm-gcc to generate both 32 and 64 bit binaries of the same project, it works extremely well for this and I haven't encountered any mingw64 header issues at all

I could not find a solution to having both a 32 and 64 bit target in the same project, mainly due to the resource compiler. Tim's suggestion was perfect because I only have 1 resource file per project anyway

Hope that clears up the confusion

Navigation

[0] Message Index

[*] Previous page

Go to full version