CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Problem with multiple compilations units

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Diogo melo
Guest







Problem with multiple compilations units
PostPosted: Fri Aug 01, 2008 2:54 pm     Reply with quote

Hi, i'm trying to link a series of .c files in my project but i keep getting this error from the CCS compiler:

Code:
Executing: "C:\Program files\Picc\CCSC.exe" +FM LINK="MIDIToCV.hex=main.o,menu.o,maqEstadosMIDI.o,DACSPI.o" +DF +LN +T -A +M -Z +Y=9 +EA

--- Info 300 "C:\Documents and Settings\Diogo\Desktop\Projecto Final de Curso\MIDIToCV\MIDIToCV.C" Line 1(0,1): More info:   * List index out of bounds (0)
*** Error 44 "C:\Documents and Settings\Diogo\Desktop\Projecto Final de Curso\MIDIToCV\MIDIToCV.C" Line 1(0,1): Internal Error - Contact CCS  OUTPUT FILE O


the files compile correctly but the linkage process seems to fail.

i have four source files with their respective header files, respecting the example given in the CCS help file under "multiple compilations units".


Could anyone give me a hand?

TIA

Diogo Melo
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Aug 01, 2008 7:00 pm     Reply with quote

What is your compiler version number?
It is a four digit number like 4.074 and can be found at the top of the list file (*.lst), or for Windows compilers you can find the number under 'Start/Programs/PIC-C/Compiler Version'.
diogo melo
Guest







PostPosted: Fri Aug 01, 2008 7:24 pm     Reply with quote

ckielstra wrote:
What is your compiler version number?
It is a four digit number like 4.074 and can be found at the top of the list file (*.lst), or for Windows compilers you can find the number under 'Start/Programs/PIC-C/Compiler Version'.


sorry about that:

CCS PCM C Compiler, Version 4.018, 19694 02-Ago-08 02:12
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sat Aug 02, 2008 5:21 am     Reply with quote

Your version is very old, current release is v4.077.
The first releases of the new v4 compiler were bad quality and for testing purposes only. Starting with release v4.030 it was possible to compile most programs again like in the v3 compiler. The new features did take a bit longer to compile correctly, especially multi-unit compilation had some problems. Your v4.018 is known to be not-working. For more info see the v4 sticky thread on top of this forum.
diogo melo
Guest







PostPosted: Sat Aug 02, 2008 6:45 pm     Reply with quote

ckielstra wrote:
Your version is very old, current release is v4.077.
The first releases of the new v4 compiler were bad quality and for testing purposes only. Starting with release v4.030 it was possible to compile most programs again like in the v3 compiler. The new features did take a bit longer to compile correctly, especially multi-unit compilation had some problems. Your v4.018 is known to be not-working. For more info see the v4 sticky thread on top of this forum.


Thanks! That worked perfectly! I can now divide my project into modules like i wanted.

Thanks again!

Diogo Melo
diogo melo
Guest







PostPosted: Sat Aug 02, 2008 7:18 pm     Reply with quote

actually it just solved half the problem: i have one main module(main.c and main.h) and three other auxiliary ones(DACSPI.c MIDI.C and MENU.C and their respective header files). In the main.h i include in the end all of the other .h files. The auxiliary modules have the implementation of each function.The functions are only used in the main module not on any other.

What happens is i manage to compile correctly all of the files but for the MIDI.C and the MENU.C the source code has to be in the main.c.That does not happen with the DACSPI.c.

i get something like this:
Code:
Executing: "C:\Program Files\PICC\Ccsc.exe" +FM LINK="MIDIToCV.hex=main.o,DACSPI.o,maqEstadosMIDI.o,menu.o" +DF +LN +T -A +M -Z +Y=9 +EA
*** Error 112 "main.c" Line 46(1,1): Function used but not defined:  ... MIDIFrameRecieverSM  SCR=5609
      1 Errors,  0 Warnings.



I've have now the 4.057 version compiler.

diogo
Diogo Melo



Joined: 04 Aug 2008
Posts: 4
Location: ISEL,Lisbon, Portugal

View user's profile Send private message

PostPosted: Mon Aug 04, 2008 6:59 pm     Reply with quote

anyone please?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group