Hi Pascal,
The errors you encountered were caused you were using a wrong
makefile. I guess you simply used the linux makefile for mingw on
windows. See detail comments inline.
Regards,
Ke
On Aug 5, 5:12 pm, Pascal <
pascal_kess...@hotmail.com> wrote:
> Hi everyone
>
> Currently, I am trying to compile and use pococapsule with MinGW - not
> very successfully, unfortunately. Using the precompiled DLLs is out of
> the question, as they were compiled with VC, and using MSYS, I get
> hundreds of warnings and errors like this:
>
> pocoenv.C:1: warning: -fpic ignored for target (all code is position
> independent)
> pocoenv.C:25: warning: 'POCO_AppEnv::POCO_AppEnv()' redeclared without
> dllimport attribute: previous dllimport ignored
> ...
The -fpic is a compile flag for compiling on linux. You should not use
the pococapsule's linux makefile for mingw. Other warning messages
indicates that you didn't have the BUILD_POCOCAPSULE marco defined.
I tested with mingw with the following compile line in the capsule
directory without get even a single line of error and warning:
c:\pococapsule-cpp\src\capsule>gcc -Wall -O3 -c -DBUILD_POCOCAPSULE -I
\pococapsule-cpp\include -I. *.C
> pocoenv.o: In function `POCO_AppEnv':
> c:\c++\pococapsule-cpp\src\capsule/pocoenv.C:25: undefined reference
> to `_imp___ZTV11POCO_AppEnv'
>
This is a link error. What link line you used. I tested with the
following link line to build the pococapsule engine DLL without
getting even a single line of warning or error:
c:\pococapsule-cpp\src\capsule>g++ *.o -shared -o pococapsule.dll
I will add a makefile for mingw on windows in later release.
Hope this helps.
Ke