Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
preprocessor
- Page 1
Re: Preprocessor definitions on the command line
Programming
Software Development
17 Years Ago
by thekashyap
… are processed at the time of compilation. Arguments relevant to
preprocessor
(e.g. -DXXX=value) are passed to compiler and used…
Re: Preprocessor and typedef
Programming
Software Development
16 Years Ago
by csurfer
…: 1. the scanner (lexical analyser) works "before"
preprocessor
so your 1st statement is wrong... 2. The C…
preprocessor
is a one-pass text processor...[/QUOTE] No buddy …doubts. #define is dealt with by
preprocessor
right and not lexixal analyser ? And as
preprocessor
is a one pass text processor …
Re: Preprocessor directives
Programming
Software Development
10 Years Ago
by tgreiner
… not what is happening. The mere presence of these
preprocessor
lines are preventing the file from compiling. However, if…'t that the whole point of using the define
preprocessor
around the contents of a header file, so that…get incorporated within the code? But if the #define
preprocessor
is not carrying is definintions across the different files …
Preprocessor and typedef
Programming
Software Development
16 Years Ago
by csurfer
… know #define statements are executed before the program is compiled (
preprocessor
directives) and so the characters used should have no other…=c]#define int float[/code] How many passes would the
preprocessor
directives run for as for the following type of statements…
Re: Preprocessor and typedef
Programming
Software Development
16 Years Ago
by ArkM
It seems it's your homework... See this forum rules... ;) Some tips: 1. the scanner (lexical analyser) works "before"
preprocessor
so your 1st statement is wrong... 2. The C
preprocessor
is a one-pass text processor...
Re: Preprocessor Directives , Help plz ..
Programming
Software Development
14 Years Ago
by vijayan121
… arguments[/quote] One option is to use the boost
preprocessor
metaprogramming library. [url]http://www.boost.org/doc/libs…/1_45_0/libs/
preprocessor
/doc/index.html[/url] For example, [b]file /…tmp/pp.h[/b] [code]#include <boost/
preprocessor
.hpp> #include <boost/any.hpp> #include …
Re: Preprocessor directives
Programming
Software Development
10 Years Ago
by tgreiner
… std:: to variable declarations. But, when USES_ERROR_HANDLER_H is defined the
preprocessor
should just include "ErrorHandler.h" and ignore everything… class related code is should not be relevant because the
preprocessor
should skip over it. But that is not what is…
Preprocessor directives
Programming
Software Development
21 Years Ago
by BlackDice
…'), I could just write this: ptr = new CSomePointer; CHECKPTR the
preprocessor
actually expands the text in the appropriate places before compiling…
Preprocessor definitions on the command line
Programming
Software Development
20 Years Ago
by ejptccs123
Hi, I need to have my compiler take
preprocessor
definitions from the command line. How does it differ from normal command line parameter passing (main(int arc, char *argv[])) ? Thanks.
Re: Preprocessor definitions on the command line
Programming
Software Development
20 Years Ago
by ejptccs123
Thanks for the tip. I'm using Dev-C++. And I got the
preprocessor
flag to work. Thanks.
Re: Preprocessor definitions on the command line
Programming
Software Development
17 Years Ago
by paramaguru
i need it fast[quote=ejptccs123;63390]Hi, I need to have my compiler take
preprocessor
definitions from the command line. How does it differ from normal command line parameter passing (main(int arc, char *argv[])) ? Thanks.[/quote]
Re: Preprocessor definitions on the command line
Programming
Software Development
17 Years Ago
by vijayan121
1. [B]g++ -DHAVE_CONFIG -Wall -std=c++98 -o myprogram[/B] 2. [B],/myprogram hello world[/B] in 1., the command line args are used by the c
preprocessor
, some are forwarded to the compiler and linker in 2., the command line args are passed to myprogram and are available as parameters passed to main
preprocessor uint to unsigned int
Programming
Software Development
16 Years Ago
by monkey_king
I've made a program using gcc as a compiler. In my loops I've been using a uint type as the type of my loop variable. But now it seems that some systems doesn't support this type. Can I make a
preprocessor
conditional that does a #define uint to unsigned int if typename uint doesn't exist thanks in advance
Re: preprocessor uint to unsigned int
Programming
Software Development
16 Years Ago
by WaltP
… systems doesn't support this type. Can I make a
preprocessor
conditional that does a #define uint to unsigned int if…
Preprocessor Directives , Help plz ..
Programming
Software Development
14 Years Ago
by Rookie09
… .. So , the thing is that i need to define a
preprocessor
directive so i can compile correctively an SQL pseudocode into…
Preprocessor definition concatenation
Programming
Software Development
14 Years Ago
by deanus
Hi all, Is it possible to define a
preprocessor
constant using another constant and a string in the declaration, like this: [CODE] #define MAIN_PATH = "C:\\My Documents\\" #define SUB_DIR = MAIN_PATH + "MyFolder\\" [/CODE] I'm using VC++ 2010 Express... Thanks, Dean
Re: Preprocessor definition concatenation
Programming
Software Development
14 Years Ago
by deanus
What I mean is that I know it's not possible to do it the way I coded it because the compiler is defining SUB_DIR to the value of MY_PATH and it's completely ignoring the rest of the line, but is it possible to concatenate 2
preprocessor
constants...? If not, is it possible to define an include directory 'in-code', not from a project's settings..?
Preprocessor error
Programming
Software Development
13 Years Ago
by acechauhan
… a keyword or is predefined? Is there some rule about
preprocessor
directives that I am not familiar with?
Preprocessor directives
Programming
Software Development
10 Years Ago
by tgreiner
… a more generic context. So, I am trying to use
preprocessor
directives to redefine the class structure for those more generic…
Re: Preprocessor directives
Programming
Software Development
10 Years Ago
by tgreiner
I knew my problem was in my understand of the
preprocessor
process. What you have stated here clarified where I was misunderstanding things and thus helped me to understand what was going wrong. Thanks.
Re: Preprocessor #warning Command Question
Programming
Software Development
16 Years Ago
by grumpier
… no way to #define a macro that expands to a
preprocessor
directive. There is also the incidental concern that #warning is… not a standard
preprocessor
directive. Any C++ compiler will generate an error on an…
Re: Preprocessor in C
Programming
Software Development
12 Years Ago
by saurabh.mehta.33234
@Adak I dont think so its illegal in C infact the "##" is a valid token pasting operator for
preprocessor
.The answer to this is that comments are replaced by
preprocessor
into white spaces before the macros are even seen!!
Re: Preprocessor doesn't see my environment variables
Programming
Software Development
13 Years Ago
by Narue
You're not doing what you think you're doing, which is set a
preprocessor
symbol during compilation. Try using a compiler switch instead: [code] $(GPP) -D UBUNTU -g -c -o Tester_dbg.o Tester.cpp [/code]
Re: Preprocessor in C
Programming
Software Development
12 Years Ago
by deceptikon
…; The answer to this is that comments are replaced by
preprocessor
into white spaces before the macros are even seen!! That…
Windows software trace preprocessor
Hardware and Software
Microsoft Windows
15 Years Ago
by prasanp
… support tools are known as WPP Software Tracing) is a
preprocessor
that simplifies the use of WMI event tracing to implement…
Problem with preprocessor directives
Programming
Software Development
15 Years Ago
by skiabox
… [/CODE] Here's the errors I get : Error 1 Invalid
preprocessor
expression D:\UWESA\trunk\source\uwesa_web_CS\Properties\MyExtensions\MyWebExtension.cs…
C Preprocessor impossibility?
Programming
Software Development
13 Years Ago
by mwjones
…[/B] pseudoinstruction, but more accurately a snag using the C
preprocessor
. I have an array of op codes from which I…
C preprocessor concatenation
Programming
Software Development
13 Years Ago
by ricardo.crudo
Hello Everybody. I'm with a classic problem in C
preprocessor
concatenation. This is the situation: [CODE] #define BAUDRATE(VAL) (B ## …
tilde (~) unary operator in #if preprocessor directive
Programming
Software Development
12 Years Ago
by hg_fs2002
Is it possible to use tilde (~) in C preprocess directive in the following way? #define a 1 #if ~a==0 ... #endif Generally, I want to know how we can ~ in
preprocessor
directives?
Re: tilde (~) unary operator in #if preprocessor directive
Programming
Software Development
12 Years Ago
by deceptikon
Have you tried that code? I mean, a simple test program would have answered your question in far less time than it took for me to notice it and answer. But yes, you can use bitwise NOT in a
preprocessor
directive.
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC