From: Carl <car...@gm...> - 2008-11-09 05:49:45
|
hi, i am a linux user, but i have interested in one of my projects from the windows community, and now im trying to port everything to windows. in a nutshell, my project consists of a core program, and a bunch of plugins, compiled as shared objects. Now under linux i compile the core with the -rdynamic flag (im not even sure if this is neccesary) and when i open the .so with dlopen all the symbols inside the core program required by the .so are resolved. Im wondering if i can do the same thing under windows, because when i try to compile the .dll i get a list of every single core function as an linker error: undefined symbol blah. So the only work around ive come up with so far is to compile every single object into each of the plugins, making them each 5mb big, which is more or less unacceptable for my purposes. is there a way to achieve the same effect that i do under linux, or am i going to have to hack around this by compiling most of the core into a dll and have each of the plugins and the core link to that. |