Re: quantlib library on windows/codeblock/MinGW

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: quantlib library on windows/codeblock/MinGW

pasparis
Hello Luigi

thanks you for giving advices in order to compile Quantlib on codeblock

I re init everything and did the following steps:

Step 1:
Setting->Compiler&Debugger->Toolchain Executable
Compiler's installation directory:c:\R\RTolls\MinGW

Step2:
File->New Project->Static Library
name:pQuantLib2
(remove the main.c file created)

Step 3: Create an include folder ,I copy within the ql folder
select pQuantLib3->Right click Mouse->Add Files Recursively->select Include Folder
press Ok, press Ok

Step 4
Project->Build Options->Searchdirectories
Compiler:
Include
..\Program Files\boost\bosst_1_47

Linker:
..\Program Files\boost\boost_1_47\lib


Step 5:
execute the Build
it generates all the object files and then after the object files I get

ar.exe: creating libpQuantLib2.a
ar.exe: obj\Debug\Include\ql\: No such file or directory
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings

and there is no libpQuantLib2.a created, would it be possible to get like on linux directly
a library generated with gnu gcc compiler?

the MinGW is installed with RTools lastest version, before I used the MinGW directly installed by codeblocks

any suggestions would be very helpful thanks again
Pascal


 


 


---- Message d'origine ----
>De : "Luigi Ballabio" <[hidden email]>
>À : [hidden email]
>Objet : Re: [Quantlib-users] generate quantlib library on windows-netbeans-cygwin
>Date : 21/02/2012 23:09:59 CET
>Copie à : [hidden email]
>
>It might be that Codeblocks has a different set of include directories
> for C and C++ files.
> Try looking in the settings and see if that's the case. If so, you'll
> have to add the QuantLib directory to the second set as well.
>
> Hope this helps,
> Luigi
>
>
> On Fri, Feb 17, 2012 at 10:08 PM, <[hidden email]> wrote:
> > Hello
> >
> > after failed in trying to generate the quantlib library with codeblocks
> > -MinGW -gcc compiler
> > the compilation seemed to work but the final link failed
> >
> > I try to do it with netbeans,cygwin and gcc compiler, the compilation
> failed
> > at the only c file
> > of the package:
> >
> > Include/ql/math/randomnumbers/primitivepolynomials.c
> > Include/ql/math/randomnumbers/primitivepolynomials.c:21:56:
> > ql/math/randomnumbers/primitivepolynomials.h: No such file or directory
> >
> > I tried to change in cpp the extension but it creates another error
> message
> >
> > I don't know why, any suggestions will be very helpful
> > pascal
> >
> > ---------------------------------------------------------------------------
> ---
> > Virtualization & Cloud Management Using Capacity Planning
> > Cloud computing makes use of virtualization - but cloud computing
> > also focuses on allowing computing to be delivered as a service.
> > http://www.accelacomm.com/jaw/sfnl/114/51521223/
> > _______________________________________________
> > QuantLib-users mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/quantlib-users
> >
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: quantlib library on windows/codeblock/MinGW

Luigi Ballabio
Hi,
    I don't have codeblocks, so it's hard to say what's happening.
Maybe you could try asking for help on the codeblocks mailing list?

Luigi


On Sun, Feb 26, 2012 at 12:44 PM,  <[hidden email]> wrote:

> thanks you for giving advices in order to compile Quantlib on codeblock
>
> I re init everything and did the following steps:
>
> Step 1:
> Setting->Compiler&Debugger->Toolchain Executable
> Compiler's installation directory:c:\R\RTolls\MinGW
>
> Step2:
> File->New Project->Static Library
> name:pQuantLib2
> (remove the main.c file created)
>
> Step 3: Create an include folder ,I copy within the ql folder
> select pQuantLib3->Right click Mouse->Add Files Recursively->select Include
> Folder
> press Ok, press Ok
>
> Step 4
> Project->Build Options->Searchdirectories
> Compiler:
> Include
> ..\Program Files\boost\bosst_1_47
>
> Linker:
> ..\Program Files\boost\boost_1_47\lib
>
>
> Step 5:
> execute the Build
> it generates all the object files and then after the object files I get
>
> ar.exe: creating libpQuantLib2.a
> ar.exe: obj\Debug\Include\ql\: No such file or directory
> Process terminated with status 1 (0 minutes, 1 seconds)
> 0 errors, 0 warnings
>
> and there is no libpQuantLib2.a created, would it be possible to get like on
> linux directly
> a library generated with gnu gcc compiler?
>
> the MinGW is installed with RTools lastest version, before I used the MinGW
> directly installed by codeblocks
>
> any suggestions would be very helpful thanks again
> Pascal
>
>
>
>
>
>
>
>
> ---- Message d'origine ----
>>De : "Luigi Ballabio" <[hidden email]>
>>À : [hidden email]
>>Objet : Re: [Quantlib-users] generate quantlib library on
>> windows-netbeans-cygwin
>>Date : 21/02/2012 23:09:59 CET
>>Copie à : [hidden email]
>>
>>It might be that Codeblocks has a different set of include directories
>> for C and C++ files.
>> Try looking in the settings and see if that's the case. If so, you'll
>> have to add the QuantLib directory to the second set as well.
>>
>> Hope this helps,
>> Luigi
>>
>>
>> On Fri, Feb 17, 2012 at 10:08 PM, <[hidden email]> wrote:
>> > Hello
>> >
>> > after failed in trying to generate the quantlib library with codeblocks
>> > -MinGW -gcc compiler
>> > the compilation seemed to work but the final link failed
>> >
>> > I try to do it with netbeans,cygwin and gcc compiler, the compilation
>> failed
>> > at the only c file
>> > of the package:
>> >
>> > Include/ql/math/randomnumbers/primitivepolynomials.c
>> > Include/ql/math/randomnumbers/primitivepolynomials.c:21:56:
>> > ql/math/randomnumbers/primitivepolynomials.h: No such file or directory
>> >
>> > I tried to change in cpp the extension but it creates another error
>> message
>> >
>> > I don't know why, any suggestions will be very helpful
>> > pascal
>> >
>> >
>> > ---------------------------------------------------------------------------
>> ---
>> > Virtualization & Cloud Management Using Capacity Planning
>> > Cloud computing makes use of virtualization - but cloud computing
>> > also focuses on allowing computing to be delivered as a service.
>> > http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> > _______________________________________________
>> > QuantLib-users mailing list
>> > [hidden email]
>> > https://lists.sourceforge.net/lists/listinfo/quantlib-users
>> >
>>

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users