- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I try to use macros for assert on release build configuration.
I want to add #define NDEBUG each time I build a release. I went to project properties -> paths and symbols and under symbols added the NDEBUG.
When I compile using Intel compiler it dosn't have any affect but when I use gcc it works.
Can anybody tell me what is the reason for the behaviour?
Thanks!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
First of all, thank you for using our products!
I tried to reproduce the case you have described, but everything works well. I've created a new project with Intel toolchain selected, and specified an NDEBUG symbol in "paths and symbols" for Release configuration. Additionally I've added a TEST symbol for both configurations.
Here is my debug build output:
make -k all
Building file: ../main.c
Invoking: Intel IA-32 C Compiler
icc -g -DTEST -MMD -MP -MF"main.d" -MT"main.d" -c -o "main.o" "../main.c"
Finished building: ../main.c
And release build:
make -k all
Building file: ../main.c
Invoking: Intel IA-32 C Compiler
icc -g -DNDEBUG -DTEST -MMD -MP -MF"main.d" -MT"main.d" -c -o "main.o" "../main.c"
Finished building: ../main.c
Note, that GCC and Intel toolchains has different containers for symbols: GNU C and C Source File. So if you will add an entity to the symbol list of GCC toochain it will be unavailable from Intel toolchain. Could you make sure that you have added your symbols into Intel's toolchain?
If the issue is still exist could you provide more information about it, actual command line, compiler version and etc.?
Thanks,
--Pavel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
Thank you for your help!
The problem has been migration from linux to windows projects. The configuration is slightly different since I use MiniGW on windows.
Pavel, I double checked your symbols. All works fine all both systems.
Thanks a lot!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page