User forums > General (but related to Code::Blocks)

Ardunio Project Help

<< < (4/6) > >>

stahta01:

--- Quote from: eldevstudios on June 25, 2018, 01:27:15 am ---
--- Quote from: stahta01 on June 25, 2018, 01:16:37 am ---Remove the option or use a compiler that supports that option. Did you setup the compiler tool chain correctly?

--- End quote ---
It's the standard Mingw-w64 6.2.0 with POSIX Threads. Ithink POSIXS...
It better be set up right, otherwise something is wrong and my other projects are some sort of miraculous outcome.
Any suggestions for this "other" compiler?

--- End quote ---

So, you are no longer building code you wish to run on an Ardunio board?
And, the current code is to run on Windows instead?

Tim S.

eldevstudios:

--- Quote from: stahta01 on June 25, 2018, 03:45:24 am ---So, you are no longer building code you wish to run on an Ardunio board?

--- End quote ---
No, that wasn't said. I don't have a single project I am working on. If the compiler was the issue, I wouldn't be able to build code for my other projects. The toolchains are setup right. If they weren't, no project could build.
I am still trying to build the simple test code to see if it will even build for the Arduino.

oBFusCATed:
To build code for arduino you need avr-gcc. Is it selected as a compiler for the uno target?

headkase:

--- Quote from: eldevstudios on June 25, 2018, 01:27:15 am ---Any suggestions for this "other" compiler?

--- End quote ---

MinGW-Builds has the latest compilers:

https://sourceforge.net/projects/mingw-w64/files/

In Toolchains targeting Win64 or Win32 -> Personal Builds -> mingw-builds -> GCC version (7.3.0 is more stable than the latest 8.1.0) -> Threading Model (posix is good) -> Exception handling (SEH is best but limited to 64-bit compilers, if you're 32-bit then Dwarf) -> Download the latest revision of the compiler.

Then see:

http://wiki.codeblocks.org/index.php/MinGW_installation#Code::Blocks_Configuration

For integrating the MinGW-Builds compiler into Code::Blocks.  Unarchive the compiler toolchain wherever you would like, then start from the given link to configure Code::Blocks to use it.

For cross-compiling to your Ardunio project I'm not completely sure this toolchain will do that but it's worth a shot and by being the most recent versions there should be support for more targets.

eldevstudios:

--- Quote from: headkase on June 25, 2018, 06:01:25 pm ---For cross-compiling to your Ardunio project I'm not completely sure this toolchain will do that but it's worth a shot and by being the most recent versions there should be support for more targets.

--- End quote ---
I hadn't asked how to set up Mingw-w64, it works fine for me. My question was what compiler should I use for AVR-GCC.


--- Quote from: oBFusCATed on June 25, 2018, 09:19:43 am ---To build code for arduino you need avr-gcc. Is it selected as a compiler for the uno target?

--- End quote ---
I couldn't find an AVR-GCC compiler for some weird reason. I have Mingw-w64 as default most of the time.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version