Solved

code warrior

Posted on 1997-04-25
2
344 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

777 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