-L only works with -l, you should pass the full directory
to the dll. There might one or two other flags to allow the
linking to work, but the idea is more or less that;
I'll have a look.
Victor
----- Original Message -----
From: Rory Walsh <rorywalsh@ear.ie>
Date: Friday, February 1, 2008 5:03 pm
Subject: Re: [Cs-dev] Linking to Csound dll
To: Developer discussions <csound-devel@lists.sourceforge.net>
> Now I get the following errors:
>
> D:\MyDocuments\SourceCode\Csound5\csound5>g++ CsoundConsole.cpp -
> o
> test.exe -I./H csound32.dll.5.1
>
> CsoundConsole.cpp:28:2: warning: no newline at end of file
> csound32.dll.5.1(.text+0x160):crtstuff.c: multiple definition of
> `atexit'C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../crt2.o(.text+0x2b0):crt1.c:
> first defined here
> csound32.dll.5.1(.text+0x190):crtstuff.c: multiple definition of
> `_onexit'C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../crt2.o(.text+0x2c0):crt1.c:
> first defined here
> csound32.dll.5.1(.text+0x1c0):crtstuff.c: multiple definition of
> `__do_sjlj_init'
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/crtbegin.o(.text+0x0):crtstuff.c:
> first defined here
> collect2: ld returned 1 exit status
>
> The other strange thing is that if I use a -L and pass the
> directory
> that holds csound.dll.5.1 it never finds it.
>
> Rory.
>
>
>
> Victor.Lazzarini@nuim.ie wrote:
> > No -l
> >
> > Victor
> >
> > ----- Original Message -----
> > From: Rory Walsh <rorywalsh@ear.ie>
> > Date: Friday, February 1, 2008 3:26 pm
> > Subject: Re: [Cs-dev] Linking to Csound dll
> > To: Developer discussions <csound-devel@lists.sourceforge.net>
> >
> > > I'm assuming you forgot to add a -l before Csound32...
> if so
> > > then how is
> > > your command any different to my one?
> > >
> > > Yours
> > > > g++ -o blah blah.c -L/dll/dir
> Csound32.dll.5.1> >
> > > Mine
> > > > g++ CsoundConsole.cpp -o test.exe
> > > > -I../../SourceCode/csound5/csound5/H
> > > > -L../../SourceCode/csound5/csound5 -
> lcsound32.dll.5.1> >
> > > When running either command I get the same error about
> not being
> > > able to
> > > find csound32.dll.5.1 even though I'm sure it's there.
> Is there
> > > any
> > > chance that MinGW needs the dll to have a dll extension?
> > >
> > > Rory.
> > >
> > >
> > > Victor.Lazzarini@nuim.ie wrote:
> > > >
> > > > g++ -o blah blah.c -L/dll/dir Csound32.dll.5.1
> > > >
> > > > Victor
> > > > ----- Original Message -----
> > > > From: Rory Walsh <rorywalsh@ear.ie>
> > > > Date: Friday, February 1, 2008 3:14 pm
> > > > Subject: [Cs-dev] Linking to Csound dll
> > > > To: Developer discussions <csound-
> devel@lists.sourceforge.net>> > >
> > > > > I'm trying to link directly to the csound
> dll without
> > > needing to
> > > > > use
> > > > > pexports but I can't seem to do it. This is
> what I'm trying:
> > > > >
> > > > > D:\MyDocuments\Lectures\CPAA>g++
> CsoundConsole.cpp -o
> > > test.exe> > -I../../SourceCode/csound5/csound5/H
> > > > > -L../../SourceCode/csound5/csound5 -
> lcsound32.dll.5.1> > > >
> > > > > If I replace -lcsound32.dll.5.1 with -
> lcsound32 it
> > > works fine.
> > > > > Any
> > > > > ideas? csound32.dll.5.1 is definitely in the right
> > > directory.> >
> > > > > Rory.
> > > > >
> > > > >
> > > > > ---------------------------------------------
> ----------
> > > ----------
> > > > > --------
> > > > > This SF.net email is sponsored by: Microsoft
> > > > > Defy all challenges. Microsoft(R) Visual
> Studio 2008.
> > > > >
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> >
> > > _______________________________________________
> > > > > Csound-devel mailing list
> > > > > Csound-devel@lists.sourceforge.net
> > > > >
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> > > >
> > > >
> > > > -----------------------------------------------------
> ----------
> > > ---------
> > > >
> > > > -----------------------------------------------------
> ----------
> > > ----------
> > > > This SF.net email is sponsored by: Microsoft
> > > > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > >
> > > >
> > > > -----------------------------------------------------
> ----------
> > > ---------
> > > >
> > > > _______________________________________________
> > > > Csound-devel mailing list
> > > > Csound-devel@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >
> > > -------------------------------------------------------
> ----------
> > > --------
> > > This SF.net email is sponsored by: Microsoft
> > > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > _______________________________________________
> > > Csound-devel mailing list
> > > Csound-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> > ---------------------------------------------------------------
> ---------
> >
> > ---------------------------------------------------------------
> ----------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >
> >
> > ---------------------------------------------------------------
> ---------
> >
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> -----------------------------------------------------------------
> --------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel