Topic profile page for Preprocessor.
This page has aggregated data from forum posts, threads, listings, online discussions, newsgroups, messageboards, and other online sources which contain user generated content for the term: Preprocessor.
Topic "Preprocessor" was discussed 0 times on 0 sites in last 3 months
How to verify a preprocessor macros defined with no value...How to verify a preprocessor macros defined with no value , and only if defined with a value should the code within that be exectued. #ifdef ABC int a; #endif int a is available only if a value of ABC is available. ABC is defined as #define ABC Some O
Started 1 day, 4 hours ago (2009-12-29 20:42:00)
by duc le
Hi, I am learning about C Preprocessor macros in MySQL source code that are used in conditional compilation statements, e.g. macro __WIN__ in #ifdef __WIN__ ... #endif macro __NETWARE__ in #ifdef __NETWARE__ ... #endif etc. What I am doing are finding the relationships between those macros and documenting those relationships. I tried to search the ...
Started 5 days, 7 hours ago (2009-12-25 17:42:00)
by Aparna Bhure
Hi All, I am trying to add preprocessors in my BlackBerry application. I have followed the following steps: 1. Add defines tag with project settings and also tried by manually adding -define = DEBUG;PREPROCESSOR in .jdp file with "Options". 2. Added //#preprocess as the first statement of the file 3. Added following in one of the function like: //#ifdef DEBUG ...
Started 1 week, 3 days ago (2009-12-20 12:27:00)
by man s
Hello folks! I have recently encountered a snippet of C preprocessor code which has been troubling me since the past few days. Here it is: #define SQR(x) (x*x) main(){ int a,b=3; a=SQR(b+2); printf("%d",a); } This gives answer 11 which completely baffles me. Any suggestions on it will be highly appreciated. Thanx in advance.
Started 2 weeks, 1 day ago (2009-12-15 18:37:00)
by ppthelion
I want to check if there is some parameter has already been defined,so I worked like this : #ifdef NO64BITS INTEGER, PARAMETER, public :: i8b = i4b #else INTEGER, PARAMETER, public :: i8b = SELECTED_INT_KIND(16) #endif But when I compile it ,the compliler shows :"warning, bad # preprocessor line" .I'm a newer to fortran,so I don't know what and how to do with it.Any answer is appreciated! ...
Started 1 month, 2 weeks ago (2009-11-15 08:53:00)
by Javiier
I am covering a topic called Preprocessor Directive in Csharp . I have learnt the #if preprocessor directive, but I am not able to grasp what is the #define preprocessor directive . How is it actually used? I have been using Java for along time but I am new to Csharp. I am totally confused over this topic. Reply fast.
Started 1 month, 3 weeks ago (2009-11-05 20:07:00)
by eric.slosser
The C preprocessor in Visual Studio allows either forward or back slashes in the quoted string following a #include directive. I'd like to disallow backslashes, so people working with Visual Studio wouldn't check code into the SCM repository that doesn't compile on other compilers. #include "path\to\foo.h" // breaks the build Edited by eric.slosser Thursday, November 05, 2009 8:10...
Started 1 week ago (2009-12-23 07:11:00)
by John E
Using VS2005 I'm building a source library that was originally written to be compiled using gcc. A couple of modules have code that looks like this:- Code: #if defined(__i386__) || defined(__x86_64__) // Do something #elif defined(__powerpc__) // Do something else #elif defined(__alpha__) // Do something else #elif defined(__mips__) // etc, etc #endif For ...
Started 6 days, 22 hours ago (2009-12-24 02:41:00)
by bacelar
Code : #define UNICODE #define _UNICODE Si vous le mettez comme première ligne de votre stdafx.h, oui. Mais il y a beaucoup plus simple, le définir dans les options du projet. Clic Droit sur le projet -> Properties -> Configuration Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions
Started 1 week ago (2009-12-23 05:23:00)
by wkitty42
pippin wrote: Ha ha ha i can do that, but there are more docs for setting up snort with apache and mysql as i have i dont understand why this dont work preprocessor http_inspect_server: \ server 192.168.0.5 profile apache ports { 80 } as snort has an example Example IP Configuration preprocessor http_inspect_server: \ server 10.1.1.1 profile all ports { 80 } i don't know either and the ...
Started 4 days, 17 hours ago (2009-12-26 08:22:00)
by Speedo
You have to determine the OS based on preprocessor symbols defined by the compiler. If you're primarily worried about just windows, mac and linux, you can usually do something like: Code: #define PLATFORM_WIN32 1 #define PLATFORM_APPLE 2 #define PLATFORM_LINUX 3 #if defined(__WIN32__) || defined(_WIN32) #define PLATFORM PLATFORM_WIN32 #elif defined(__APPLE_CC__) #define ...
Started 1 day, 9 hours ago (2009-12-29 16:23:00)
by mercedes85
I raised the warning level back to three and instead eliminated warnings with a combination of putting the _SCL_SECURE_NO_WARNINGS macro, etc in the Project properties > ... ... ... >Preprocessor Definitions and also using #pragma warning (disable: 4267), etc in my header files. I think it'll allow me to correct the warnings later by introducing specific ones at a time rather than the who ...
Started 4 days, 1 hour ago (2009-12-27 00:00:00)
by Topi Ojala
should the "name" given in the preprocessor command match on lines 1 and 2 in doublylinkedlist.h ? other than that I'm not sure what the problem might be ( or you might have figured it out by now
Started 1 day, 8 hours ago (2009-12-29 17:17:00)
by atlantageek
Thanks for the quick response. Here is the complete log after doing what you suggested. [sbox-Chumby: ~/cmdline-missile] > libusb_CFLAGS="-I/usr/local/include" libusb_LIBS="-L/usr/local/lib -lusb" ./configure --enable-static-link --host=arm-linux --prefix=/usr/local configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross ...