View Full Version : Dsymname in GCC
felix
09-15-2004, 02:58 PM
Hi,
I saw a code that pass to gcc at compilation time a option called Dsymname, so i looked at my gcc man pages and it doesn't say nothing about it. Someone know what it does ?
Regarsd,
RobSeace
09-15-2004, 09:52 PM
You mean like "gcc -Dsymname"? If so, all that does is define a
macro by that name... Ie: exactly the same thing as just doing
"#define symname" within your code... If it was "-Dsymname=val",
then it's like doing "#define symname val"...
As for the point of the actual macro being defined, I have no idea...
Grep through the code, and see what depends on that macro's
value/definition or lack thereof...
felix
09-16-2004, 03:03 PM
Hello RobSeace,
Helped a lot. I understood for what use it. Only more one ask. If i make it in a module for kernel this symbol is automatically exported to other kenel functions and other modules ?
Regards,
RobSeace
09-16-2004, 08:23 PM
Um, no... Like I said, it only defines a macro... It's not a real
"symbol" in any way... It's a text macro, the same as you get
by doing #define... So, the only things that would be able to use
it are those that are compiled with that macro defined...
felix
09-17-2004, 02:08 PM
Hi,
Thkz a again! :)
Regards,
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.