Linker errors

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linker errors

Jump to solution
2,301 Views
Spookydude
Contributor III

Hi, I'm working on a new project, on a new computer with a new version of CodeWarrior.  I keep getting linker errors, first the error was that it could not find the mc9s08ac16.c file, so I copied it to the Sources directory.  It found it and continued but now says it is ignoring the project.prm file and warns it has found mc9s08ac16.c.0 twice.  Any ideas for a clean fix?  I'm trying to use codewarrior and processor expert to save time because I only have a couple of weeks from start to finish of this project.  It must be working for a show in Las Vegas in March.

Labels (1)
Tags (1)
0 Kudos
1 Solution
1,513 Views
Spookydude
Contributor III

I think I have found the problem.  If I select assembly language as a language option the Processor Expert selection is not available.  The older version of CodeWarrior didn't do this.  Oh well, I will see if I can build a project without assembly language enabled.

View solution in original post

0 Kudos
8 Replies
1,513 Views
CrasyCat
Specialist III

Hello

 

I assume you have originally created the project on one computer with one version of CodeWarrior and then you copied it over to another computer and tried to build it there.

 

Am I right?

 

Please check the following:

  - If you are using CodeWarrior classic (Version number smaller than 10.0):

        - Close the IDE

        - In a windows explorer browse for your project directory (where you have the .mcp file)

        - Delete the directory *_Data

        - Restart CodeWarrior and open your project.

        - In the Target setting dialog make sure you are not using absolute paths anywhere.

 

- If you are using CodeWarrior eclipse (Version 10.0 or higher)

       - Open your project in CodeWarrior

       - Click right on the project name in CodeWarrior project window

       - Select Clean Project

       - Click right on the project name in CodeWarrior project window

       - Select Edit linked Resources Locations

       - Switch to the Linked Location tab and check whether there are some file (except your .abs file) listed in

         the Invalid location group.

         If this is the case you may need to adjust some of the variables defined in the path Variables tab to point

         to paths on your new Host PC.

      - Also check the Project settings and check if you are using absolute paths anywhere.

 

I hope this helps.

 

CrasyCat

0 Kudos
1,513 Views
Spookydude
Contributor III

assumption is incorrect.  Brand new project, computer and CodeWarrior IDE.  Started from scratch.  I've used CW before and never had this issue with the older version.  Started this new project and started getting strange linker errors that should not have been occuring.  The only thing tricky I'm doing is that I am running Win7 64 bit but using a VMware window running XP to operate CodeWarrior on.  I am running CodeWarrior Devel Studio IDE version 5.9.0 build 5292.  There were never any older versions of CW on this computer.  Everything is brand spanking new.  No old code on this machine.  Is it safe to do this with my version:

 - Close the IDE

        - In a windows explorer browse for your project directory (where you have the .mcp file)

        - Delete the directory *_Data

        - Restart CodeWarrior and open your project.

        - In the Target setting dialog make sure you are not using absolute paths anywhere.

 

0 Kudos
1,513 Views
Spookydude
Contributor III

Well I tried the fix you suggested by renaming the *_DATA folder and restarting the project.  No dice!  still getting the same linker errors and others saying symbols are duplicated in IO_Map.c.o and MC9S08AC16.c.o.  Running out of time...

0 Kudos
1,513 Views
Spookydude
Contributor III

I started a brand new project as a test.  All I did was select the CPU, C code and assembly, then added Processor Expert to it.  Tried to make the file and I get the error:  C5200: MC9s08ac16.h file not found  deriveative.h line 7.

 

I never had this problem with the old versions of CodeWarrior.  they just worked.  What is going on?  I haven't written a single line of code, CW is working with its own generated code and gets compile errors.

0 Kudos
1,513 Views
ProcessorExpert
Senior Contributor III

Hello,

 

please find attached new_PE_prj.pdf that should guide you to create new PE project without any problems. In case your problem persist - could you please post here step by step process that leads you to getting the problem?

 

I wasn´t able to reproduced the problem as is described with CW V6.3.

 

best regards
Vojtech Filip
Processor Expert Support Team

 

Attachments:

new_PE_prj.pdf 338 KB

0 Kudos
1,513 Views
Spookydude
Contributor III

Thanks for your reply.  I followed your directions but when I get to the screen which asks for Processor Expert that item has never been selectable.  It is grayed out.  I have been going to the main screen and converting to Processor Expert.  How do I make my Processor Expert selection active such as in your RED BOX on the document you provided?

0 Kudos
1,513 Views
Spookydude
Contributor III

I unistalled CodeWarrior and downloaded a fresh copy and reinstalled it.  I get the same problem.  The Processor Expert selection is not available.  I followed the help screen messages and converted a non PE project to a PE project and I still get the errors at compile and link time.  Something is not right.

0 Kudos
1,514 Views
Spookydude
Contributor III

I think I have found the problem.  If I select assembly language as a language option the Processor Expert selection is not available.  The older version of CodeWarrior didn't do this.  Oh well, I will see if I can build a project without assembly language enabled.

0 Kudos