-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix to a possibly nasty error (I've got it) when platform specific …
…external libraries are located in their platform specific folders (e.g., mingw32/ and win32/) The problem is when compiling simulation code with g++ on windows and a .lib version library is found before its .a version e.g., for MyExternal library, if there is Resources/Library/mingw32/libMyExternal.a and Resources/Library/win32/MyExternal.lib Previously, the Library paths generated in the makefile was in the opposite order, so that Resources/Library/win32/MyExternal.lib was picked first by g++ ((wtf??) the lib was compiled by MSVC 2010) In my case, the difference was that simulation failed in time = 0.5 because of NLS solution failed ... really weird - Now, the library paths are generated in the expected order (back again), from the most specific (stating with mingw32 on Windows) to the least specific (this "bug" was introduced only lately by changing the order with more sophisticated conditional cons-ing ...) - using extern inline in model_help.c to prevent MSVC making the functions static - an update to CodegenCSharp.tpl git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15482 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Showing
3 changed files
with
60 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters