We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

decl - identifiers

pdorai
pdorai asked
on
Medium Priority
301 Views
Last Modified: 2010-04-02
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.
Comment
Watch Question

xyu

Commented:
Show sample of Your code please...

Author

Commented:
Edited text of question
xyu

Commented:
Send it to ok@pansw.com

Commented:
Did you try to #include <complex> (without .h)?

Commented:
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.

Commented:
Try copying the <complex.h> from the UNIX include directory into the source directory of the WINDOWS machine and compile.
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Commented:
pdorai, did you try my suggestion?  You also didn't answer my email.  Please provide some feedback.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.