Linker Problem
Fresquez, Reuben Anthony
reubenf at lanl.gov
Wed Jan 8 21:48:53 UTC 2020
Hello,
I am currently using Geisler's RCC 1.2 and RTEMS 4.10. I am getting an error after compiling my c files into object files, and then linking them together. The error I get is:
/opt/rtems-4.10/sparc-rtems/leon3/lib/librtemscpu.a(dummy.o):(.data+0x2c): undefined reference to `main'
collect2: ld returned 1 exit status
I am using "sparc-rtems-gcc" to do the linking, and cannot seem to figure out how to get around this problem. The file "librtemscpu.a" is part of the prebuilt libraries included in the RCC 1.2 distribution, and I cannot find any source code for this file to inspect the unresolved reference to main. I am wondering if any of you have suggestions about solving this issue or maybe have run into the same thing. Please let me know.
Thank you,
Reuben Fresquez
Student, ISR-3
reubenf at lanl.gov<mailto:reubenf at lanl.gov>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20200108/72879509/attachment.html>
More information about the users
mailing list