Rockbox Development > Starting Development and Compiling

Undefined Reference Issue while compiling

<< < (2/3) > >>

bluebrother:

--- Quote from: srawat_itpro on March 23, 2009, 03:26:09 PM ---Any idea what is the issue here??

--- End quote ---
For ARM targets the recommended compiler is gcc 4.0.3. I could imagine that your older version has issues with that, thus I'd recommend updating to 4.0.3.

srawat_itpro:
I might be wrong here... but as long as my GCC 3.3.6 has the support for my cpu arch (iwmmxt), there shouldn't be any problems.

I think the iwmmxt arch doesn't support FPA but supports Software VFP. Thus my SDL downloaded from the link above may not help if its is compiled for FPA. Therefore I need to compile SDL with my compiler for my arch iwmmxt.

Let me see...

I'll keep things posted.

Rgds
Sandeep

Llorean:
It's not that simple. There are bug fixes and improvement to support over time. Sometimes "support" doesn't even mean "support fully."

We've seen very strange bugs happen (or disappear) by changing compiler versions for the very same target.

srawat_itpro:
ok...
So I compiled SDL libs for my cpu arch and used the new SDL libs and include in my makefile.

After this I fired the make. Now the previous mentioned error regarding FPA and software FP is gone :) but there is still one last error:

--- Quote ---$ make
LD rockbox.ezxe6
/opt/crosstool/gcc-3.3.6-glibc-2.3.2/arm-linux/lib/gcc-lib/arm-linux/3.3.6/../../../../arm-linux/lib/crt1.o(.text+0x30): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [/work/rockbox/rockbox-20090307/build/rockbox.ezxe6] Error 1
--- End quote ---


The main() function is not being found. Any idea what needs to be done here?? My makefile is attached.

Rgds
Sandeep


EDIT

Can someone provide some pointers in this regards?

Rgds
Sandeep

Domonoky:

This error means, there is no main() function in the code it compiled.
Run "make V=1" to get detailed build output, and check if it really compiles and links app/main.c

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version