ANDREW ROCKE

OBJECT Keyword Linker

Discussion created by ANDREW ROCKE on Jul 12, 2006
Latest reply on Jul 13, 2006 by CrasyCat
I'm trying to use the OBJECT keyword to put main of main.c at a known location.  From the CF v5.0 Targeting Manual.  I have the following (simplified)
 
 
.text2 :
   {
       OBJECT (main, main.c)
   } > prog_rom
 
I get the following warning:
    
                                  Linker command file warning at line 41
                                  Object "main" not found in file "main.c"
 
The map file shows # text2 is empty
 
Please can someone highlight what I'm doing wrong or provide a better way of fixing the location of the main function?
 
Also there is a note in CF v5.0 Targeting Manual  
 
"When using C++, you must specify functions by thier mangled names"
 
What does this mean?
 
Thanks
 
R

Outcomes