Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

how to pass -D preprocessor define to VS 2010 offline compiler plugin?

$
0
0

Hi,

good job on the SDK, intel! I am using the 2013 SDK version with the plugin for Visual Studio 2010.

in my cl code, I want to be able to do this:

#ifdef NAMEOFDEFINE
//some work
#endif

How do I define NAMEOFDEFINE?
I tried -D NAMEOFDEFINE, -DNAMEOFDEFINE, -D NAMEOFDEFINE = 1, -DNAMEOFDEFINE=1 both in the project's Intel SDK property sheet's "additional build option" field and in the command line's "additional options" field, but to no avail. If I specify it in the project settings, it does show up in the individual cl file's settings as well, as expected. However, when I offline-compile the file, the output window log echos the used build options ("Using build options:"), but only the -I includes are listed, not my custom -D parameter.

What am I missing? Looking forward to your insights.
Cheers

Internal Tags: 


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>