Solved

code warrior

Posted on 1997-04-25
2
350 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

761 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