synopse / mORMot2

OpenSource RESTful ORM/SOA/MVC Framework for Delphi and FreePascal
https://synopse.info
Other
485 stars 122 forks source link

Windows API Multiple defined symbols #230

Closed Coldzer0 closed 6 months ago

Coldzer0 commented 6 months ago

Hello @synopse

I was working on my project ImGui-Pascal, and It requires linking with some Windows libraries, one of them is msvcrt And I was recreating one of my projects to use it as a UI and mORMot2 as the backend.

Now the problem is these APIs are already defined in src\lib\mormot.lib.static.pas

Error: Multiple defined symbol "__strtod"
Error: Multiple defined symbol "__imp__localtime64"

__strtod is only used by src\lib\mormot.lib.quickjs.pas, which can be handled with an IFDEF if QuickJS is used.

But the real problem is imp_localtime64 := @localtime64; which I assume is used for some other library (not sure).

So, what do you think about this case?

synopse commented 6 months ago

Please use the forum to discuss this.

Then ReOpen the issue if needed.