Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

code warrior

Posted on 1997-04-25
2
Medium Priority
?
402 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 150 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

824 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