:flags:
:test:
:compile:
:*:
- -g---
:project:
:use_exceptions: FALSE
:use_test_preprocessor: TRUE
:use_auxiliary_dependencies: TRUE
:build_root: build
:release_build: TRUE
:test_file_prefix: test_
:release_build:
:output: ELE440-Lab2.exe
:use_assembly: FALSE
:environment:
:flags:
:release:
:compile:
:*:
- -std=c++11
- -O0
- -Wall
:extension:
:source: .cpp
:executable: .exe
:paths:
:test:
- +:test/**
- -:test/support
:source:
- src/**
:support:
- test/support
:defines:
:commmon: &common_defines []
:test:
- *common_defines
- TEST
:test_preprocess:
- *common_defines
- TEST
:cmock:
:mock_prefix: mock_
:when_no_prototypes: :warn
:enforce_strict_ordering: TRUE
:plugins:
- :ignore
- :callback
:treat_as:
uint8: HEX8
uint16: HEX16
uint32: UINT32
int8: INT8
bool: UINT8
:plugins:
:load_paths:
- vendor/ceedling/plugins
:enabled:
- stdout_pretty_tests_report
- module_generator
...
Enter code here...--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To post to this group, send email to throwth...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/f3ae0fd7-1250-4075-abc1-00283dc32152%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ceedling new projectName
:extension:
:source: .cppC:/Software/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.:flags:
:release:
:compile:
:*:
- -std=c++11I went back to the original thread (that I do not recall reading previously), but I'm not quite clear on what exactly the problem is. Can you walk us through the specifics?
:flags:
:release:
:compile:
:*:
- '-std=c++11' #note enclosing single quote marks
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/1f673eb8-05cd-4308-8cc3-5459e560dcdc%40googlegroups.com.
/*--------------------------------- +
| INCLUDE |
+ ---------------------------------*/
/* ==== Lib ==== */
#include <cstdio>
#include <cstdint>
#include <iostream> /* Needed for debuging */
/* ================= */
using namespace std;
/*--------------------------------- +
| GLOBAL |
+ ---------------------------------*/
/*--------------------------------- +
| PROTOTYPES |
+ ---------------------------------*/
void printTest(char * string);
/*--------------------------------- +
| MAIN |
+ ---------------------------------*/
int32_t main(int32_t argc, char** argv)
{
printTest("Testing One Two One Two");
exit(0);
}
/*--------------------------------- +
| FUNCTION |
+ ---------------------------------*/
void printTest(char * string)
{
printf(string);
}:flags:
:release:
:compile:
:*:
- '-std=c++11'PS C:\Users\Laurence\Desktop\ceedlingTest\ceedlingTestingCpp> rake release
Release build 'project.out'
---------------------------
Compiling main.cpp...
In file included from C:/Software/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdint:35:0,
from src/main.cpp:14:
C:/Software/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
src/main.cpp:32:1: error: 'int32_t' does not name a type
int32_t main(int32_t argc, char** argv)
^
ERROR: Shell command failed.
> Shell executed command:
'gcc.exe -I"src" -DGNU_COMPILER -c "src/main.cpp" -o "build/release/out/c/main.o"'
> And exited with status: [1].
rake aborted!
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/generator.rb:97:in `rescue in generate_object_file'
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/generator.rb:101:in `generate_object_file'
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/rules_release.rake:26:in `block in <top (required)>'
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/task_invoker.rb:85:in `block in invoke_release_objects'
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/par_map.rb:10:in `block (2 levels) in par_map'
ShellExecutionException: ShellExecutionException
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/tool_executor.rb:74:in `exec'
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/generator.rb:94:in `generate_object_file'
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/rules_release.rake:26:in `block in <top (required)>'
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/task_invoker.rb:85:in `block in invoke_release_objects'
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/par_map.rb:10:in `block (2 levels) in par_map'
Tasks: TOP => build/release/out/c/main.o
(See full trace by running task with --trace):flags:
:release:
:compile:
:main:
- '-std=c++11'--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To post to this group, send email to throwth...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/826b2b09-3e78-4166-b674-bd4bf25e09a7%40googlegroups.com.
:flags:
:release:
:*:
:*:
- '-std=c++11'--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To post to this group, send email to throwth...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/29270f64-83d6-47fd-8a24-ac38931af4b5%40googlegroups.com.
:flags:
:release:
:compile:
:main:
- '-stdc11'blablabla....
ERROR: Shell command failed.
> Shell executed command:
'gcc.exe -I"src" -DGNU_COMPILER -c "src/main.cpp" -o "build/release/out/c/main.o"'
> And exited with status: [1].
rake aborted!
blablabla....
puts (FLAGS_RELEASE)
{:compile=>{:main=>["-stdc11"]}}
{:compile=>{:main=>["-std=c++11"]}}--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To post to this group, send email to throwth...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/c68923a3-e93f-4ba3-9cd3-187494c1ce64%40googlegroups.com.
DEFAULT_TEST_COMPILER_TOOL = { :executable => FilePathUtils.os_executable_ext('gcc').freeze, :name => 'default_test_compiler'.freeze, :stderr_redirect => StdErrRedirect::NONE.freeze, :background_exec => BackgroundExec::NONE.freeze, :optional => false.freeze, :arguments => [ {"-I\"$\"" => 'COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR'}.freeze, {"-I\"$\"" => 'COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE'}.freeze, {"-D$" => 'COLLECTION_DEFINES_TEST_AND_VENDOR'}.freeze, "-DGNU_COMPILER".freeze, "-g".freeze, "-c \"${1}\"".freeze, "-o \"${2}\"".freeze, # gcc's list file output options are complex; no use of ${3} parameter in default config "\"${4}\"".freeze, ].freeze }
DEFAULT_TEST_LINKER_TOOL = { :executable => FilePathUtils.os_executable_ext('gcc').freeze, :name => 'default_test_linker'.freeze, :stderr_redirect => StdErrRedirect::NONE.freeze, :background_exec => BackgroundExec::NONE.freeze, :optional => false.freeze, :arguments => [ "\"${1}\"".freeze, "-o \"${2}\"".freeze, "\"${4}\"".freeze, ].freeze }Most peculiar. Looks very much like a bug. Or possibly the project has changed in some key ways since I last touched it, and it's now out of sync with the documentation. No matter what, it certainly something is broken or undocumented. I'll try to dig in.
:flags:
:release:
:compile:
- -std=c++11 - -O0 - -Wall
--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To post to this group, send email to throwth...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/c68923a3-e93f-4ba3-9cd3-187494c1ce64%40googlegroups.com.
:flags:
:release:
:compile:
- -std=c++11{:compile=>["-std=c++11"]}
Release build 'project.out'
---------------------------
Compiling main.cpp...
In file included from C:/Software/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdint:35:0,
from src/main.cpp:14:
C:/Software/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
src/main.cpp:32:1: error: 'int32_t' does not name a type
int32_t main(int32_t argc, char** argv)
^
ERROR: Shell command failed.
> Shell executed command:
'gcc.exe -I"src" -DGNU_COMPILER -c "src/main.cpp" -o "build/release/out/c/main.o"'
> And exited with status: [1].
rake aborted!
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/generator.rb:97:in `rescue in generate_object_file'
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/generator.rb:101:in `generate_object_file'
C:/Users/Laurence/Desktop/ceedlingTest/ceedlingTestingCpp/vendor/ceedling/lib/ceedling/rules_release.rake:26:in `block in <top (required)>':flags:
:release:
:compile:
:main:
- -std=c++11
ERROR: Shell command failed.
> Shell executed command:
'gcc.exe -I"src" -DGNU_COMPILER -c "src/main.cpp" -o "build/release/out/c/main.o"'
> And exited with status: [1].
rake aborted!--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To post to this group, send email to throwth...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/af062c0b-5d2e-4ffc-ad14-63762d804092%40googlegroups.com.
PS C:\Users\Laurence\Desktop\ceedlingTest\ceedlingTestingCpp> gcc.exe -I"src" -DGNU_COMPILER -c "src/main.cpp" -o "build/release/out/c/main.o" -std=c++11
src/main.cpp: In function 'int32_t main(int32_t, char**)':
src/main.cpp:34:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
printTest("Testing One Two One Two");I assume that if you copy/edit the command line Ceedling produces to include the desired flag and run it by hand that compilation succeeds. Is that so?I've gone looking through the relevant code, and I tend to think there is a bug in there and/or a lack of documentation on how the :flags section is expecting to be configured.I don't think the flag was actually changed! It's possible I'm reading your output snippet incorrectly, however. The line that quotes the gcc command line in the error message lacks the desired flag.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/2a89105a-931f-43e8-aa3e-0573bbd2b785%40googlegroups.com.