Mega Search
23.2 Million


Sign Up

Make a donation  
HELP ME - F1003 Error directive: sysmac.h cannot be used in  
News Group: embarcadero.public.cppbuilder.language.cpp

get the following error when trying to compile project, using c++ builder XE7, with embedded dsql after pre-processing with interbase's gpre.
[bcc32 Fatal Error] sysmac.h(15): F1003 Error directive: sysmac.h cannot be used in C mode - this header requires C++! Can anyone tell me how to correct this problem. Have tried everything I know and nothing works.

Edited by: Daniel Cunningham on Jan 6, 2015 4:45 PM

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 6-Jan-2015, at 4:49 PM EST
From: Daniel Cunningham
 
Re: HELP ME - F1003 Error directive: sysmac.h cannot be used  
News Group: embarcadero.public.cppbuilder.language.cpp
Thanks

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 12-Jan-2015, at 8:47 PM EST
From: Daniel Cunningham
 
Re: HELP ME - F1003 Error directive: sysmac.h cannot be used  
News Group: embarcadero.public.cppbuilder.language.cpp
Daniel wrote:

> [bcc32 Fatal Error] sysmac.h(15): F1003 Error directive: sysmac.h
> cannot be used in C mode - this header requires C++!

That error means that you have an "#include " directive (directly 
or indirectly) in a .c file, or in a .cpp file that is being compiled as 
C instead of C++.

> Can anyone tell me how to correct this problem. Have tried everything
> I know and nothing works.

Stop compiling your code in C, or stop using the VCL/RTL in C code.

--
Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 6-Jan-2015, at 5:03 PM EST
From: Remy Lebeau (TeamB)