[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnucap] plugins mingw compatibility (continue..)
From: |
leomp |
Subject: |
Re: [Help-gnucap] plugins mingw compatibility (continue..) |
Date: |
Tue, 1 May 2007 01:18:20 -0700 (PDT) |
Hi,
Thank you for the usefull answer!
Now, I'am traying to compile one plugin as object ,adding futher to the link
list.
But there are some errors with file md.h. see plz the output:
LEONARDO ~/gnucap/plugins/spice3f5-models/jfet
$ make
g++ -O2 -g -I. -I../Include -DTRACE_UNTESTED -DSPICE_3f -DHAS_STDLIB
-I../../../src -Wall -Wextra -c ../Include/wrapper.cc
In file included from ../../../src/u_limit.h:27,
from ../Include/wrapper.cc:51:
../../../src/md.h: In function `void* dlopen(const char*, int)':
../../../src/md.h:132: error: invalid conversion from `const char*' to
`CHAR*'
../../../src/md.h:132: error: initializing argument 1 of `HINSTANCE__*
LoadLibraryA(CHAR*)'
make: *** [wrapper.o] Error 1
Do you have same clue?!
Best Regards
Leonardo
On Saturday 21 April 2007 04:27, leomp wrote:
> I cannot compile currently plugins for gnucap with mingw,
> but,there is a question....
>
> It is possible to include specifics plugins in the gnucap
> compilation , for ex. plugin located at
>
> ../gnucap-2007-03-29/plugins/spice3f5-models/jfet ?
>
> If so,what is the correct procedure? I need some clue how to
> change the makefile and etc...
Sorry about the delay in answering. I was on vacation, away
from email.
If you are doing only one, just add the .cc file to "Make1"
(with the old build system) or "Makefile.am" (with the
autoconf based build system).
You also need to add the .c files. I am not sure what other
changes are needed, but I didn't look. The Spice .c files do
not compile as C++.
If you are using the autoconf based build system you need to
rerun autogen.sh,(which requires autoconf and automake) then
reconfigure. If you are using the old build system, just type
make after changing Make1.
Another possibility is to link the model files to a non-shared
library, then changing the main Make1 to link that.
Static linking more than one spice model will not work because
they use the same class names, and may have name clashes
between them. Native C++ plugins don't have this problem
because they hide the names in a private "namespace". I could
not do this for the Spice models because of the need to share
between C and C++ code. quote>
--
View this message in context:
http://www.nabble.com/plugins-mingw-compatibility-%28continue..%29-tf3622262.html#a10265858
Sent from the Gnucap - Help mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Help-gnucap] plugins mingw compatibility (continue..),
leomp <=