problem with linked in files

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

problem with linked in files

751 Views
Jim_P
Contributor III

I am having troubles with linked in files. Windows 7 64 bit and CW 10.1 for HS08 micro's

 

Files that are linked into the compiler and are located in a common lib area such as Monitor files.

The source files is found but the Header files (any files that are #included) are not found by the compiler.

 

Is there a solution for this - - - - as I make changes to this files - - I would like these files to be updated where they are stored. and not have files in this project and at the end of it or when switch to an other project have to store back the files that should be linked in.

 

note The CW editer can open the files just fine. - it is just that the compiler can not find any of the linked in files.

 

Bug in Compiler or am I doing something wrong.

note I have added the paths to the files

 

thanks

Jim P

Labels (1)
Tags (1)
0 Kudos
5 Replies

574 Views
CrasyCat
Specialist III

Hello

 

  Did you specify the paths to your include files in the Project Properties.

  You need to add the paths to the included files in the Include File Path list box from the

           C/C++ Build > Settings > HCS08 Compiler > Input property page.

 

CrasyCat

0 Kudos

574 Views
Jim_P
Contributor III

Crazycat, I tried what you suggested,

 

now I am getting a much worst error

 

box that says SmartLinker at the top

and error message of

 

Error during scanning of Option "-Wpd -WmsgFob"%f%e:%l:%k:%d%m\n"

"C:/Engineering/Shunyata/time base/C-Code/Project_Settings/Linker_FIles/Project.prm"

-L"C:/Engineering/C_Lib" -L"C:/Engineering/C-Lib/MOnitor_Lib"

"-B -M -WmSgd1100 - WmsgSd1912"

from Command Line Options

 

I have removed the settings that you suggest and still get this error message.

so do not expect the line with -L's to be present but they still are.

 

does having the directory path with a space a problem i.e. /time base/

 

note I am using windows 7 64 bit and CW10.1  working on a H08JM60 project

 

thanks

0 Kudos

574 Views
CrasyCat
Specialist III

Hello

 

If you have paths with spaces in their mane make sure to specify the paths between double quotes.

 

Then are you sure you add the files in the appropriate location? If you add a path to

 C/C++ Build > Settings > HCS08 Compiler > Input property page, it should not apply as linker option.

 

Finally if you are using Windows 7, I would recommend that you install CodeWarrior outside of the Program Files folder. For example use C:\Freescale or d:\Freescale as root directory for the installation.

 

If this does not help can you send me the args file used to build the .abs file?

 

CrasyCat

0 Kudos

574 Views
Jim_P
Contributor III

Hum

 

did not think of both Compiler and Linker directory paths - - - -

 

also the space was in the path to the project directory.

 

C:\Engineering\Shunyata\Time base\C-Code

 

the project directory also has the PCB schematic and board layout and also the PC check out and debug code files

so have folder C-Code for the micro code.

 

changed the path by creating and other without the space.And then moving all of the files over.

have not tried everything that you suggest yet - - - will shortly

 

as I really need some of the files to be linked in from their locations as these are common files used by many projects and any updates should pass to all projects.

 

Does the #include statement need to have the full path if the files is in the project headers folder and linked in?

or just the compiler and linker input paths - - - -

 

note the linked paths is showing the correct path to each file.

 

note I am having many other strange problems such as the Device init and PE will load and run once when I create a new project - - and then will not load again - - when starting CW 10.1 again.

 

CW loaded into the program files (86)

 

Jim P

0 Kudos

574 Views
CrasyCat
Specialist III

Hello

 

CodeWarrior should supports spaces in path name as long as the paths are specified within double quotes.

 

If the paths to the include file is listed in the Compiler Input property page, you do not need to specify full paths in the source file.

The linked paths are for the Eclipse IDE only. They are not taken into account by the compiler/linker.

 

Around your Processor Expert issue, I do not have a Windows 7 system, but I heard that couple of problems are related to CodeWarrior being installed within  "program files (86)".

 

So can you please give it a try and install CodeWarrior some other place?

 

CrasyCat

0 Kudos