<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Bo Berglund via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am So., 27. Sep. 2020, 18:12:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to find the cause of a linker error when building my<br>
application on Linux.<br>
While doing this I looked in the project file projname.lpi and found<br>
this strange entry:<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<CONFIG><br>
<ProjectOptions><br>
<Version Value="11"/><br>
<PathDelim Value="\"/><br>
<br>
Why is the path delimiter defined inside the project information file?<br>
And what are th consequences when moving the sources (via SVN) between<br>
Windows and Linux? Obviously this setting would be fals in one<br>
platform...<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It's for the other paths that are used in the project file. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Seems like something that should be handled by FPC itself depending on<br>
the platform it runs on.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">FPC itself only handles the paths of the host platform (which means "/" on *nix and "/" as well as "\" on Windows). </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
My project builds fine now on Linux but refuses to link successfully,<br>
could this be the reason?<br>
<br>
It has started a series of messages about WSMenu items again for some<br>
unknown reason during linking.<br>
<br>
wsmenus.pp(263,1) Error: undefined reference to `WSRegisterMenu'<br>
<br>
I am not using wsmenus...<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yes, you are, even if it is indirectly. Otherwise the compiler or linker wouldn't complain about it.</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>