Compile QuantLibXL_full_vc9 error!

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

Compile QuantLibXL_full_vc9 error!

Matrixpower
Hi All,

   I got error when I compiled QuantLibXL_full_vc9 solution. It looks so weird. At beginning, I only compiled project apr and aprutil respectively. When I compiled log4gcxx, I got
--------------------------------------------------------------------------
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : error C2004: expected 'defined(id)'
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : fatal error C1012: unmatched parenthesis : missing ')'
--------------------------------------------------------------------------
   Then I clean all solution build and build the solution. Then I got the following errors for apr, aprutil .......
--------------------------------------------------------------------------
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : error C2004: expected 'defined(id)'
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : fatal error C1012: unmatched parenthesis : missing ')'
--------------------------------------------------------------------------
  I don't know what the problem is. My system is Windows XP and Visual Studio 9.

Thanks



Reply | Threaded
Open this post in threaded view
|

Re: Compile QuantLibXL_full_vc9 error!

Ferdinando M. Ametrano-3
On Tue, Dec 1, 2009 at 12:15 PM, Matrixpower <[hidden email]> wrote:
>   I got error when I compiled QuantLibXL_full_vc9 solution. It looks so
> weird. At beginning, I only compiled project apr and aprutil respectively.
> When I compiled log4gcxx, I got
> --------------------------------------------------------------------------
> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : error
> C2004: expected 'defined(id)'
> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : fatal
> error C1012: unmatched parenthesis : missing ')'

chances are you have some problem with your sdk

which version of QLXL are you trying to compile ?
windows xp 32 o 64 bits ?
VC 9: what do you have in the about box ?

ciao -- Nando

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Compile QuantLibXL_full_vc9 error!

Matrixpower
Thank you for your quick reply. Sorry, it is Visual studio 8.0 not visual studio 9.0. My platform is Windows XP 32 bit (Windows XP Professional Version 2002 and Service Pack 2). In the about box, Microsoft Visual Studio 2008 Version 9.0.21022.8 RTM, Microsoft .NET Framework Version 3.5 SP1.


Thanks


Ferdinando Ametrano wrote
On Tue, Dec 1, 2009 at 12:15 PM, Matrixpower <jukifoxmfe@gmail.com> wrote:
>   I got error when I compiled QuantLibXL_full_vc9 solution. It looks so
> weird. At beginning, I only compiled project apr and aprutil respectively.
> When I compiled log4gcxx, I got
> --------------------------------------------------------------------------
> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : error
> C2004: expected 'defined(id)'
> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : fatal
> error C1012: unmatched parenthesis : missing ')'

chances are you have some problem with your sdk

which version of QLXL are you trying to compile ?
windows xp 32 o 64 bits ?
VC 9: what do you have in the about box ?

ciao -- Nando

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
QuantLib-dev mailing list
QuantLib-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Compile QuantLibXL_full_vc9 error!

Matrixpower
Sorry, I forgot to mention. I download it from SVN not in the webpage. I don't think this is the problem.

Thanks


Matrixpower wrote
Thank you for your quick reply. Sorry, it is Visual studio 8.0 not visual studio 9.0. My platform is Windows XP 32 bit (Windows XP Professional Version 2002 and Service Pack 2). In the about box, Microsoft Visual Studio 2008 Version 9.0.21022.8 RTM, Microsoft .NET Framework Version 3.5 SP1.


Thanks


Ferdinando Ametrano wrote
On Tue, Dec 1, 2009 at 12:15 PM, Matrixpower <jukifoxmfe@gmail.com> wrote:
>   I got error when I compiled QuantLibXL_full_vc9 solution. It looks so
> weird. At beginning, I only compiled project apr and aprutil respectively.
> When I compiled log4gcxx, I got
> --------------------------------------------------------------------------
> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : error
> C2004: expected 'defined(id)'
> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : fatal
> error C1012: unmatched parenthesis : missing ')'

chances are you have some problem with your sdk

which version of QLXL are you trying to compile ?
windows xp 32 o 64 bits ?
VC 9: what do you have in the about box ?

ciao -- Nando

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
QuantLib-dev mailing list
QuantLib-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Compile QuantLibXL_full_vc9 error!

Matrixpower
In reply to this post by Ferdinando M. Ametrano-3
Hi Ferdinando,

    Thank you for your concerns. I have resolved that problem but I got the new one. When I compiled ohgensrc, I got the following error.

------ Build started: Project: ohgensrc, Configuration: All Win32 ------
Performing Makefile project actions
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.
 ..\..\gensrc\gensrc.py -xdlv --oh_dir=..
  File "c:\Projects\trunk\gensrc\gensrc.py", line 51
    print USAGE_ERROR % { 'scriptName' : sys.argv[0] }
                    ^
SyntaxError: invalid syntax
NMAKE : fatal error U1077: '..\..\gensrc\gensrc.py' : return code '0x1'
Stop.
Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
Build log was saved at "file://c:\Projects\trunk\ObjectHandler\gensrc\build\vc\BuildLog.htm"
ohgensrc - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

By the way, if all codes in SVN can be compiled or not. Since when I compiled ohxllib, I found the project file is not consistent with the source code. That means someone changed something but they didn't change the project file. So weird~~~~~~~~~~~~~~

Thanks

Matrix


Ferdinando Ametrano wrote
On Tue, Dec 1, 2009 at 12:15 PM, Matrixpower <jukifoxmfe@gmail.com> wrote:
>   I got error when I compiled QuantLibXL_full_vc9 solution. It looks so
> weird. At beginning, I only compiled project apr and aprutil respectively.
> When I compiled log4gcxx, I got
> --------------------------------------------------------------------------
> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : error
> C2004: expected 'defined(id)'
> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(424) : fatal
> error C1012: unmatched parenthesis : missing ')'

chances are you have some problem with your sdk

which version of QLXL are you trying to compile ?
windows xp 32 o 64 bits ?
VC 9: what do you have in the about box ?

ciao -- Nando

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
QuantLib-dev mailing list
QuantLib-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-dev