List Info

Thread: Re: Linking an UNO-based C++ code in Windows




Re: Linking an UNO-based C++ code in Windows
user name
2007-09-03 09:05:22
Hi Claudio,

i would suggest that you install and configure the SDK and
play a little 
bit with the C++ examples from the SDK. The env in the SDK
supports the 
Visual C++ Expr. Edition.

Juergen

Claudio Alberto Andreoni wrote:
> Hello to everybody,
> 
> I had to port an application which I used to run on
Linux
> on Windows. I got Visual C++ Expr. for the purpose,
and
> I am completely unfamiliar with the whole environment,
but
> I managed to configure it somehow... the compilation
is
> successful and apparently everything is in the right
place.
> When it comes to linking things get way worse: I just
can't
> find which library I am supposed to link against.
> I read variuos UNO tutorials but whatever .dll I try in
linking
> I get: fatal error LNK1107: invalid or corrupt file:
cannot read at 0x2B8
> 
> I had a look around and I learnt about static and
dynamic linking
> in Windows, which is slightly different than Linux, but
I just can't
> get out if it.
> 
> Is there anybody who might suggest me just exactly
which resource
> use for linking?
> 
> Thanks in andvance
>    Claudio A. Andreoni
> 

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


Re: Linking an UNO-based C++ code in Windows
user name
2007-09-03 10:58:09
Thank you very much.
I found out that I had to link against icppuhelper.lib and
friends in
the SDK windows/lib directory.
Now everything is working well.

Thanks again!
   Claudio A.

On 9/3/07, Juergen Schmidt <juergen.schmidtsun.com> wrote:
>
> Hi Claudio,
>
> i would suggest that you install and configure the SDK
and play a little
> bit with the C++ examples from the SDK. The env in the
SDK supports the
> Visual C++ Expr. Edition.
>
> Juergen
>
> Claudio Alberto Andreoni wrote:
> > Hello to everybody,
> >
> > I had to port an application which I used to run
on Linux
> > on Windows. I got Visual C++ Expr. for the
purpose, and
> > I am completely unfamiliar with the whole
environment, but
> > I managed to configure it somehow... the
compilation is
> > successful and apparently everything is in the
right place.
> > When it comes to linking things get way worse: I
just can't
> > find which library I am supposed to link against.
> > I read variuos UNO tutorials but whatever .dll I
try in linking
> > I get: fatal error LNK1107: invalid or corrupt
file: cannot read at
> 0x2B8
> >
> > I had a look around and I learnt about static and
dynamic linking
> > in Windows, which is slightly different than
Linux, but I just can't
> > get out if it.
> >
> > Is there anybody who might suggest me just exactly
which resource
> > use for linking?
> >
> > Thanks in andvance
> >    Claudio A. Andreoni
> >
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
> For additional commands, e-mail: dev-helpapi.openoffice.org
>
>
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )