Re: compiling issue on link using the -plat option with TDM-GCC-64
- Posted by ghaberek (admin) Oct 16, 2019
- 1658 views
clkeriolet said...
Hi everybody, I try to compile for Linux using -plat a small testcl.ex on my Windows10 PC. I get the message : cannot find -ldl . I suppose there is a missing library ? I cannot find out which one and where to get it. Maybe some of you have an idea about that . Thanks for help !
Unfortunately, cross-compiling just isn't that straight-forward. Some of the translator options, like -arch and -plat, seem to exist purely for use in building Euphoria itself.
It should possible to cross-compile applications from Linux to Windows by using -plat and -cc-prefix, but I doubt it'll work the other way around. You'd need a Linux compiler that runs on Windows and TDM-GCC is built for Windows.
-Greg