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 support@ccsinfo.com

Linker error

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



Joined: 11 Mar 2008
Posts: 20
Location: Toulouse, France

View user's profile Send private message

Linker error
PostPosted: Tue Mar 18, 2008 7:41 am     Reply with quote

Hi everybody, I'm trying to work with Miniman's fat32 driver.

I've an error at the linker step :

Quote:

The target "D:\guillot\autre_driver\MMC_SPI_FAT32.o" is already up to date.
The target "D:\guillot\autre_driver\main.o" is already up to date.
Executing: "C:\Program Files\PICC\Ccsc.exe" +FH LINK="Autre_driver.hex=MMC_SPI_FAT32.o,main.o" +DF +LN +T +A +M +Z +Y=9 +EA
*** Error 146 "Autre_driver.C" Line 1(0,1): Import error dyn mem mis-match true!=false
*** Error 146 "Autre_driver.C" Line 1(0,1): Import error
2 Errors, 0 Warnings.
Skipping link step. Not all sources built successfully.
BUILD FAILED: Tue Mar 18 14:27:24 2008


This is my main.c :
Code:
#include <project.h>


#include <MMC_SPI_FAT32.h>     

void main(void)                                             
   {                                                           
   while(1){}
   }       


My project.h :
Code:
#if defined(projet_inclus)
#else
#define projet_inclus
#include <18F4580.h>
#device PASS_STRINGS = IN_RAM

#fuses XT, NOWDT, NOPROTECT
#use delay(clock = 4000000)
#use rs232(baud=38400, xmit=PIN_C6,rcv=PIN_C7)

#include <string.h>
#use fast_io(c)
#use fast_io(e)
#endif


My MMC_SPI_FAt32.C
Code:
#include <project.h>
#include <MMC_SPI_FAT32.h>
// If you want to use software SPI keep this line uncommented
// If you want to use hardware SPI comment this line..
// Software SPI are slower, but you can use any clock and data
// pins that you want..
#define MMC_SPI_SOFTWARE
[....................................]


The MMC_SPI_FAt32.h is the same as the original :
http://www.ccsinfo.com/forum/viewtopic.php?t=23969

I've tryed several things, but it doesn't work...
Anyone can help me??? (and sorry for my bad english, I'm french ;) )

Thanks.

ps : I'm using CCS V4, and MPLAB 8.02...
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Mar 18, 2008 2:10 pm     Reply with quote

FAQ article on using CCS with MPLAB:
http://www.ccsinfo.com/faq.php?page=ccs_mplab6

Answer to a recent question to use multiple source files with MPLAB:
http://www.ccsinfo.com/forum/viewtopic.php?t=34046

More detailed information on using multiple files with MPLAB.
Read all the links in this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=32221
gremi



Joined: 11 Mar 2008
Posts: 20
Location: Toulouse, France

View user's profile Send private message

PostPosted: Wed Mar 19, 2008 8:51 am     Reply with quote

Thanks for this links, it will help me a lot
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