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

Saeed Ehteshamifar salpha.2004 at gmail.com
Wed Aug 17 19:47:31 UTC 2016


I had no main(). I was using Init() for C++ and C version as well.

On Wed, Aug 17, 2016 at 9:04 PM, Joel Sherrill <joel at rtems.org> wrote:

> Your main() was likely a C++ symbol and the default dummy
> configuration expects it to be a C symbol.
>
> Anyone have any idea how to be more flexible on this point?
>
> On Wed, Aug 17, 2016 at 1:07 PM, Saeed Ehteshamifar <salpha.2004 at gmail.com
> > wrote:
>
>> I ported my app to C and it worked.
>>
>> On Wed, Aug 17, 2016 at 5:03 PM, Joel Sherrill <joel at rtems.org> wrote:
>>
>>> The main() unresolved issue is that for some reason the application is
>>> pulling
>>> in the default configuration in cpukit/libmisc/dummy.
>>>
>>> This can be because the application doesn't have its own configuration
>>> defined
>>> or because it has a partial configuration and is missing something like
>>> say
>>> some network or filesystem configuration.
>>>
>>> On Wed, Aug 17, 2016 at 8:23 AM, Pavel Pisa <ppisa4lists at pikron.com>
>>> wrote:
>>>
>>>> Hello Saeed,
>>>>
>>>> On Wednesday 17 of August 2016 11:24:12 Saeed Ehteshamifar wrote:
>>>> > 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:
>>>>
>>>> we I have not used OMK with C++ on RTEMS. So it is quite possible
>>>> that there is some rule missing. I look at that but for integration
>>>> into RTEMS ecosystem, you should probably try WAF or other
>>>> RTEMS maintainers preferred system.
>>>>
>>>> Best wishes,
>>>>
>>>>              Pavel
>>>> _______________________________________________
>>>> users mailing list
>>>> users at rtems.org
>>>> http://lists.rtems.org/mailman/listinfo/users
>>>>
>>>
>>>
>>> _______________________________________________
>>> users mailing list
>>> users at rtems.org
>>> http://lists.rtems.org/mailman/listinfo/users
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160817/09598b33/attachment-0002.html>


More information about the users mailing list