Link to home
Start Free TrialLog in
Avatar of shoemam
shoemam

asked on

code warrior

I am trying to use code warrior to compile ansi c code.  Whenever, I copy a working ansi program into code warrior it tells me link error when I run it.  This is real basic code, nothing extravagant, like add two variables.  Do I need to add any files to the project?  Thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of dimauro
dimauro

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
Avatar of Gil042997
Gil042997

One thing it may help to know is that external procedure names are "munged" by the C++ compiler to include information about calling parameter types.  Thus, "SQRT(float)" and "SQRT(double)" will have distinct (and practically unpredictable) external names.  Neither will be "SQRT".  

The C compiler doesn't do this; either procedure named above would have "SQRT" as its external name.