undefined reference to `main' when trying to build via OMK

Saeed Ehteshamifar salpha.2004 at gmail.com
Wed Aug 17 09:24:12 UTC 2016


Hello,

I have a CPP RTEMS app that builds fine with the RTEMS Makefile but when I
try to build it via OMK, I get the following output:

make[omk]: binary-pass in
  TARFILE rootfs_tarfile.o
  LINK    /home/saeed/tmp/slingshot/tmp/_compiled/sis/bin/testsuite
/home/saeed/rtems/b-sparc/sparc-rtems4.12/sis/lib/librtemscpu.a(default-configuration.o):
In function `Init':
/home/saeed/rtems/rtems/b-sparc/sparc-rtems4.12/c/sis/cpukit/libmisc/../../../../../../c/src/../../cpukit/libmisc/dummy/default-configuration.c:76:
undefined reference to `main'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/saeed/tmp/slingshot/tmp/_compiled/sis/bin/testsuite]
Error 1
make[1]: *** [binary-pass-this-dir] Error 2
make: *** [binary-pass] Error 2


My Makefile.omk looks like:

bin_PROGRAMS = testsuite

testsuite_SOURCES += TC_abs_1.cpp TC_wait_1.cpp t_FREED_184288.cpp
t_MAXINT_1059.cpp testcase_executer.cpp

testsuite_EMBEDTARFILES = rootfs
testsuite_EXPORTSYMBOLS = y


What is wrong? Is the way I added the CPP files to Makefile.omk the right
way to include CPP files? Because in RTEMS Makefile they should be added
with a different flag (CXX_SOURCES).

Best Regards,
Saeed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160817/0e359e1a/attachment.html>


More information about the users mailing list