LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-24-2011, 11:13 PM   #1
shamjs
Member
 
Registered: Sep 2011
Posts: 93

Rep: Reputation: Disabled
_usrdll


Hi All,
i want to know what's the meaning of #ifdef _USRDLL
(i think it is related to MFC but not sure)

here is my code
Code:
/*******predictor.cpp*****/
#ifdef _USRDLL
#include "../../dir1/inc/comm.h"
Comm gPipe;
#endif

.
.//here i have my pgm code
when i execute the pgm compiler is reporting error as
predictor.cpp:26: error: âgPipeâ was not declared in this scope

this error is due to failure of condition of #ifdef _USRDLL

plz guide me how to overcome this error.......

waiting for your reply........

Last edited by shamjs; 12-21-2011 at 09:31 AM.
 
Old 11-26-2011, 09:27 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
You might want to try
Code:
#if defined(_WIN32)
#if (defined(_USRDLL))
.
.
.
and make sure you're including appropriate header files.

Also see http://en.wikipedia.org/wiki/Microso..._Class_Library and, possibly, the Further Reading and External Links sections of the article.

Hope this helps some.

Last edited by tronayne; 11-26-2011 at 09:29 AM.
 
Old 11-27-2011, 10:49 PM   #3
shamjs
Member
 
Registered: Sep 2011
Posts: 93

Original Poster
Rep: Reputation: Disabled
is there any equivalent for #ifdef _USRDLL in g++ compiler so that i can use it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration