Do you use the integrated wizard or the one from https://github.com/obfuscated/cb_arduino_template ?
Using the integrated wizard.
What version of arduino do you have?
Arduino Uno, however it is irrelevant in the situation.
What does "didn't seem to work" mean?
Linker errors, it cannot find the specified files in the #include (s)
What is the error?
Linker error;
(just path to the project files)\ardunioSafeController\cores\CDC.cpp|3|fatal error: CDC.cpp: No such file or directory|
That is just the first error. I remove this file, the rest will throw errors because the linker is unable to find the files in the search paths specified. I tried solving this, as I mentioned, by setting the "ARDUINO_DIR" variable to the Arduino IDE path. That did't work as it still throws the errors, thus "It did't seem to work."
Please post a full rebuild log as posted here: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Literally what I have done.
The error I gave was the only error reported.
I have described the problem.
I've done nearly everything posted there.
But in a consice manner;
Codeblocks 17.12
Mingw-w64 6.2.0
Windows 8;
Problem: Code::Blocks Arduino project doesn't work; Doesn't link correctly.
What I have tried: Setting Code::Blocks' "ARDUINO_DIR" variable to the Arduino IDE; Stting System Variable "ARDUINO_DIR" to Arduino IDE; Rebuilding multiple times
Error:
||=== Build: Simulator - Debug in ardunioSafeController (compiler: Mingw-w64) ===|
(Directory to folder... Irrellevant)\Programming Projects\ardunioSafeController\cores\CDC.cpp|3|fatal error: CDC.cpp: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
Log:
-------------- Clean: Simulator - Debug in ardunioSafeController (compiler: Mingw-w64)---------------
Cleaned "ardunioSafeController - Simulator - Debug"
-------------- Build: Simulator - Debug in ardunioSafeController (compiler: Mingw-w64)---------------
g++.exe -Wall -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -g -DARDUSIM -DENABLE_API_NAME -D__AVR_ATmega328P__ -I. -IC:\CodeBlocks/ardusim\libraries\EEPROM -IC:\CodeBlocks/ardusim\libraries\Ethernet -IC:\CodeBlocks/ardusim\libraries\Firmata -IC:\CodeBlocks/ardusim\libraries\Flash -IC:\CodeBlocks/ardusim\libraries\LCD4884 -IC:\CodeBlocks/ardusim\libraries\LCD4Bit_mod -IC:\CodeBlocks/ardusim\libraries\LiquidCrystal -IC:\CodeBlocks/ardusim\libraries\OBD -IC:\CodeBlocks/ardusim\libraries\SD -IC:\CodeBlocks/ardusim\libraries\SD\utility -IC:\CodeBlocks/ardusim\libraries\Servo -IC:\CodeBlocks/ardusim\libraries\SevenSegment -IC:\CodeBlocks/ardusim\libraries\SoftwareSerial -IC:\CodeBlocks/ardusim\libraries\SPI -IC:\CodeBlocks/ardusim\libraries\Stepper -IC:\CodeBlocks/ardusim\libraries\TinyGPS -IC:\CodeBlocks/ardusim\libraries\Wire -IC:\CodeBlocks/ardusim\libraries\Wire\utility -IC:\CodeBlocks/ardusim\arduino\cores -IC:\CodeBlocks/ardusim\arduino\variants\standard -IC:\CodeBlocks/ardusim\include -c "C:\Users\matthew\Desktop\Programming Projects\ardunioSafeController\cores\CDC.cpp" -o obj\Debug\cores\CDC.o
C:\Users\matthew\Desktop\Programming Projects\ardunioSafeController\cores\CDC.cpp:3:19: fatal error: CDC.cpp: No such file or directory
#include <CDC.cpp>
^
compilation terminated.
Process terminated with status 1 (0 minute(s), 1 second(s))
1 error(s), 0 warning(s) (0 minute(s), 1 second(s))
Nothing new. Doing the same thing over and over again, changing nothing, and expecting a different result is insanity.
No idea about the simulation targets, I have no idea what they do. I'm not sure I've ever tested them.
Understandable. Any advice on where to go for the compiler error?
The only red item in the build log;
g++.exe: error: unrecognized command line option '-mmcu=atmega328p'