Link to home
Start Free TrialLog in
Avatar of pdorai
pdorai

asked on

decl - identifiers

I used standard Unix C++ compiler with the <complex.h> header file. This allows me to use the complex abstract data type in the main program.

Okay, but when I use the same program, after changing the necessary library file names for use on the MSDEV Visual C++ environment, I get the "unknown decl - identifiers" error message for the the ADT type "complex". It is accepted under the Unix compiler, but not under the MSDEV compiler.

xyu --> my code is about a thousand lines. So I can attach an email to you if you give me your e-mail address.
Avatar of xyu
xyu

Show sample of Your code please...
Avatar of pdorai

ASKER

Edited text of question
Send it to ok@pansw.com

Did you try to #include <complex> (without .h)?
Which version of VC?  VC5 puts the standard libary in the std namespace, so you'll need to qualify those names with std.  Try using std::complex.
Try copying the <complex.h> from the UNIX include directory into the source directory of the WINDOWS machine and compile.
ASKER CERTIFIED SOLUTION
Avatar of euclid091498
euclid091498

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
pdorai, did you try my suggestion?  You also didn't answer my email.  Please provide some feedback.