Hello, > In some of our use of GHDL, we link the GHDL runtime with another
executable in order to use the foreign language feature of GHDL. We start the GHDL simulation in accordance with the GHDL manual by calling ghdl_main(). This works fine on OS X, but on Linux the application fails to link with a duplicate symbol error for main(). The problem seems to be that the main symbol is present in libgrt. The problem can be fixed by marking the main function in libgrt as weak:
How do you link your application ? libgrt is provided as a static library, so its members are extracted only if needed. Therefore, making main weak shouldn't be required. Regards, Tristan. _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
