Skip to content

Commit

Permalink
- fix Windows simulation file linking:
Browse files Browse the repository at this point in the history
  * add -Wl,--allow-multiple-definition because -lblas-mingw and -lcdaskr contain the same symbols
  * any other ideas on how to fix this? forcing allowing multiple definitions is rather bad

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20005 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Apr 5, 2014
1 parent 8f75537 commit e3cc673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/runtime/config.h
Expand Up @@ -55,7 +55,7 @@
#endif

/* adrpo: add -loleaut32 as is used by ExternalMedia */
#define BASIC_LDFLAGS_RT " -lgc -lexpat -lregex -static-libgcc -luuid -loleaut32 -lole32 -lws2_32 -lsundials_kinsol -lsundials_nvecserial -lipopt -lcoinmumps -lcoinmetis -lpthread -lm -lgfortranbegin -lgfortran -lmingw32 -lgcc_eh -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -llapack-mingw -ltmglib-mingw -lblas-mingw -lf2c"
#define BASIC_LDFLAGS_RT " -Wl,--allow-multiple-definition -lgc -lexpat -lregex -static-libgcc -luuid -loleaut32 -lole32 -lws2_32 -lsundials_kinsol -lsundials_nvecserial -lipopt -lcoinmumps -lcoinmetis -lpthread -lm -lgfortranbegin -lgfortran -lmingw32 -lgcc_eh -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -llapack-mingw -ltmglib-mingw -lblas-mingw -lf2c"
#define LDFLAGS_RT " -lOpenModelicaRuntimeC" BASIC_LDFLAGS_RT
#define LDFLAGS_RT_SIM " -lSimulationRuntimeC" BASIC_LDFLAGS_RT " -linteractive -lwsock32 -llis -lcdaskr -lstdc++"
#define CONFIG_EXE_EXT ".exe"
Expand Down

0 comments on commit e3cc673

Please sign in to comment.