[OLSR-users] OLSR compatibility with Microsoft Embedded Visual C++

Thomas Lopatic (spam-protected)
Mon Jul 18 23:40:47 CEST 2005

Hi Gary,


> /home/Administrator/olsrd-0.4.9/src/main.c:100: multiple definition of `main'
> /usr/local/lib/gcc-lib/arm-wince-pe/3.3.3/../../../../arm-wince-pe/lib/crt0.o(.t
> ext+0x2c): first defined here
> /usr/local/lib/gcc-lib/arm-wince-pe/3.3.3/../../../../arm-wince-pe/lib/crt0.o(.t
> ext+0x6c): undefined reference to `WinMain'

"WinMain" is the entry point for GUI-based Windows (CE) applications.
olsrd, however, is console-based, so "main" is the entry point to be
used. It looks like the compiler does not recognize that we want it to
create a console-based application and hence looks for WinMain() instead
of main().

Did you install all the available updates (libcfix.rar, libcfix1.rar,
and specs.rar) for the cross-compiler? I think that I remember that
libcfix1.rar contains an update that fixes this (or a similar?) problem.

The code should compile without any changes.



More information about the Olsr-users mailing list