Solved

code warrior

Posted on 1997-04-25
2
341 Views
Last Modified: 2013-12-26
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!
0
Comment
Question by:shoemam
2 Comments
 

Accepted Solution

by:
dimauro earned 50 total points
ID: 1291443
It's not so easy to know if I don't see the code.
Maybe you add your files to your project but you didn't add the right libraries. What I'm saying you to do is to build a project from the new project and check (if you're using CW from 10) the menu MacOS and there C/C++, Ansi Console PPC... at this point you should have an empty ansi project. Well, remove every file from first part of the project (you can see in the window) and add your files just dropping them in the window... this should be enough to have any files you need for simple ansi function.
0
 

Expert Comment

by:Gil042997
ID: 1291444
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.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now