Luigi,
We discuss adding a North American Energy Reliability council holiday calendar earlier. You requested an algorithm, which I am attaching the a word document. The document also contains a link to their website for further detials. Also in the document is a brief introduction to hourly calendar requirements for electricity options traded over the counter. Something to think about. Please let me know anything else I can do to help. Thank you Joe Byers Luigi Ballabio <[hidden email]> wrote:
A man is not the center of his universe, rather those he loves are. So his focus should always be on them for they will provide him with love and happiness all of his life - Anonymous
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. North American Energy Reliability Council Holidays.doc (37K) Download Attachment |
On 04/14/2006 06:18:02 AM, Joe Byers wrote:
> We discuss adding a North American Energy Reliability council holiday > calendar earlier. You requested an algorithm, which I am attaching > the a word document. Added in CVS, thanks. Luigi ---------------------------------------- standards, n.: The principles we use to reject other people's code. |
Can I say COOL?
Thank you Joe Luigi Ballabio <[hidden email]> wrote:
A man is not the center of his universe, rather those he loves are. So his focus should always be on them for they will provide him with love and happiness all of his life - Anonymous
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. |
In reply to this post by Luigi Ballabio
Can anyone help with the following error in compiling and linking the OO Calc addin? The cpumaker step is bombing with a failure A man is not the center of his universe, rather those he loves are. So his focus should always be on them for they will provide him with love and happiness all of his life - Anonymous
Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. |
Hi Joe,
I believe that error results from using OpenOffice.org SDK version 2 instead of version 1. I developed QLA Calc 0.3.12 using VC6, OOo 1. Now when I try to compile using OOo 2 (VC6 or 7) I get the same error as you. In CVS I'm in the process of upgrading the QLA Calc Windows environment to VC7 and OOo 2. Once that's done I'll get back to you and hopefully you'll be able to either apply the fixes to your 0.3.12 environment or grab the CVS code. I'm very interested to see that you're looking at the Calc addin - and I gather you successfully compiled it under the previous release of QuantLibAddin (0.3.11)? Before now I wasn't aware of anyone apart from myself having compiled the Calc addin. It would be great to get the project into more general use and iron out the problems. Regards, Eric On 4/20/06, Joe Byers <[hidden email]> wrote: > Can anyone help with the following error in compiling and linking the OO > Calc addin? The cpumaker step is bombing with a failure > of the XLQ include. > > Also the makefile for the all addin projects has the environment variable > $(CLVER) in it that defaults > to VC6. This is not created when MSVC installs and I could not find > it being required in the Quantlib addin documents or where it is set in > MSVC. I just hard coded my 7.1 version. > > Thank you > Joe Byers > > > Performing Makefile project actions > Microsoft (R) Program Maintenance Utility Version 7.10.3077 > Copyright (C) Microsoft Corporation. All rights reserved. > copy QuantLibAddin.idl d:\Temp > 1 file(s) copied. > idlc -IC:\Progra~1\OpenOffice.org_2.0_SDK\idl > "d:\Temp\QuantLibAddin.idl" > idlc: compile 'd:\Temp\QuantLibAddin.idl' ... > idlc: returned successful > Sun Microsystems (R) idlc Version 1.1 > if not exist "build\vc71\DebugMTDLL/" mkdir > "build\vc71\DebugMTDLL" > regmerge QuantLibAddin-vc71-mt-gd-0_3_12.rdb /UCR > QuantLibAddin.urd > echo flagged > build\vc71\DebugMTDLL\QuantLibAddin.flag1 > cppumaker -BUCR -Tcom.sun.star.sheet.XAddIn > -Tcom.sun.star.lang.XServiceName -Tcom.sun.star.lang.XServiceInfo > -Tcom.sun.star.uno.XWeak > -Tcom.sun.star.lang.XSingleServiceFactory > -Tcom.sun.star.lang.XMultiServiceFactory > -Tcom.sun.star.uno.XAggregation > -Tcom.sun.star.lang.XTypeProvider > -Tcom.sun.star.uno.XComponentContext > -Tcom.sun.star.lang.XSingleComponentFactory > -Tcom.sun.star.registry.XRegistryKey > -Tcom.sun.star.sheet.addin.XQL "d:\Progra~1\OpenOffice.org > 2.0\program\types.rdb" QuantLibAddin-vc71-mt-gd-0_3_12.rdb > cppumaker ERROR: cannot dump Type 'com/sun/star/sheet/addin/XQL' > NMAKE : fatal error U1077: 'cppumaker' : return code '0x63' > Stop. > Project : error PRJ0019: A tool returned an error code from "Performing > Makefile project actions" > > > > A man is not the center of his universe, rather those he loves are. So his > focus should always be on them for they will provide him with love and > happiness all of his life - Anonymous > > ________________________________ > Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! > Messenger with Voice. > > > |
Eric
Here is my buildlog.html. I should note that the com.sun.star.sheet.XQL does not have a HDL file like all the other com.sun.star components. joe
eric ehlers <[hidden email]> wrote: Hi Joe, A man is not the center of his universe, rather those he loves are. So his focus should always be on them for they will provide him with love and happiness all of his life - Anonymous
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. |
In reply to this post by eric ehlers
eric,
My buildlog.htm and modifications I made to the MakeFile.vc.debug.crtdll are below. I had a couple of typo's in the makefile to fix. The XQL.hdl file is not found as I pointed out in a previous post. I also apologize for the length. Does the mailing list allow for attachements? thanx joe
# QuantLibAddin\Addins\Calc\Makefile.msdev.debug COMPONENT_NAME=QuantLibAddin !IF "$(CLVER)" == "" DLL_NAME=$(COMPONENT_NAME)-vc6-mt-gd-0_3_12 !ELSE DLL_NAME=$(COMPONENT_NAME)-vc$(CLVER)-mt-gd-0_3_12 !ENDIF #added by joe byers to overide above DLL_NAME=$(COMPONENT_NAME)-vc71-mt-gd-0_3_12 DLL_DIR=dll IDL_DIR=$(OFFICE_SDK_PATH)\idl !IF "$(BOOST_DIR)" == "" BOOST_DIR="C:\boost_1_31_0" !ENDIF DKREGISTRYNAME="$(OFFICE_PROGRAM_PATH)\types.rdb" #changed MCVCDIR to MSVC_DIR by joe byers !IF "$(MSVC_DIR)" == "" MSVC_DIR=C:\Program Files\Microsoft Visual Studio\VC98 !ELSE MSVC_DIR=$(MSVC_DIR) !ENDIF !IF "$(CLVER)" == "" INT_DIR=build\vc6\DebugMTDLL !ELSE INT_DIR=build\vc$(CLVER)\DebugMTDLL !ENDIF #added by joe byers to overide above INT_DIR=build\vc71\DebugMTDLL FLAG1=$(INT_DIR)\$(COMPONENT_NAME).flag1 FLAG2=$(INT_DIR)\$(COMPONENT_NAME).flag2 FLAG3=$(INT_DIR)\$(COMPONENT_NAME).flag3 FLAG4=$(INT_DIR)\$(COMPONENT_NAME).flag4 FLAG5=$(INT_DIR)\$(COMPONENT_NAME).flag5 FLAG6=$(INT_DIR)\$(COMPONENT_NAME).flag6 URD_FILE=$(COMPONENT_NAME).urd RDB_FILE=$(DLL_NAME).rdb DLL_FILE=$(DLL_NAME).dll CC="$(MSVC_DIR)\BIN\CL" # modified by joe byers to default VC71 env var CC="$(MSVC_DIR)\CL" CC_FLAGS=/nologo /MDd /W3 /Gm /GR /GX /Zi /Od /GZ CC_INCLUDES=-I. -I..\.. -I"$(QL_DIR)" -I"$(OBJECT_HANDLER_DIR)" \ -I"$(OFFICE_SDK_PATH)\include" -I"$(BOOST_DIR)" CC_DEFINES=/DWIN32 /D_DEBUG /D_WINDOWS /D_MBCS /D_USRDLL CC_FLAGS2=/Fp"$(INT_DIR)\$(COMPONENT_NAME).pch" /YX /Fo"$(INT_DIR)\\" /Fd"$(INT_DIR)\\" /FD /c CPP_PROJ=$(CC_FLAGS) $(CC_INCLUDES) $(CC_DEFINES) $(CC_FLAGS2) OBJECTS= \ "$(INT_DIR)\basic.obj" \ "$(INT_DIR)\calcutils.obj" \ "$(INT_DIR)\capfloor.obj" \ "$(INT_DIR)\couponvectors.obj" \ "$(INT_DIR)\funcdef.obj" \ "$(INT_DIR)\instruments.obj" \ "$(INT_DIR)\interpolation.obj" \ "$(INT_DIR)\ohfunctions.obj" \ "$(INT_DIR)\options.obj" \ "$(INT_DIR)\processes.obj" \ "$(INT_DIR)\qladdin.obj" \ "$(INT_DIR)\schedule.obj" \ "$(INT_DIR)\session.obj" \ "$(INT_DIR)\shortratemodels.obj" \ "$(INT_DIR)\simpleswap.obj" \ "$(INT_DIR)\swap.obj" \ "$(INT_DIR)\termstructures.obj" \ "$(INT_DIR)\utilities.obj" \ "$(INT_DIR)\volatilities.obj" \ "$(INT_DIR)\xibor.obj" LINK="$(MSVC_DIR)\BIN\LINK" /nologo LFLAGS=msvcrtd.lib msvcprtd.lib kernel32.lib wsock32.lib \ oldnames.lib netapi32.lib advapi32.lib gdi32.lib comdlg32.lib \ comctl32.lib user32.lib winspool.lib shell32.lib ole32.lib \ oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \ icppu.lib icppuhelper.lib isal.lib log4cxxs-vc6-mt-gd.lib \ /nologo /dll /pdb:$(INT_DIR)\$(COMPONENT_NAME).pdb /debug /machine:I386 \ /def:.\$(COMPONENT_NAME).def /out:$(DLL_FILE) \ /pdbtype:sept /libpath:. /libpath:..\..\lib /libpath:"$(OFFICE_SDK_PATH)\windows\lib" \ /libpath:"$(QL_DIR)\lib" /libpath:"$(OBJECT_HANDLER_DIR)\lib" \ /libpath:"$(LOG4CXX_DIR)\msvc\Lib" !IF "$(OS)" == "Windows_NT" NULL= !ELSE NULL=nul !ENDIF TYPES = -Tcom.sun.star.sheet.XAddIn \ -Tcom.sun.star.lang.XServiceName \ -Tcom.sun.star.lang.XServiceInfo \ -Tcom.sun.star.uno.XWeak \ -Tcom.sun.star.lang.XSingleServiceFactory \ -Tcom.sun.star.lang.XMultiServiceFactory \ -Tcom.sun.star.uno.XAggregation \ -Tcom.sun.star.lang.XTypeProvider \ -Tcom.sun.star.uno.XComponentContext \ -Tcom.sun.star.lang.XSingleComponentFactory \ -Tcom.sun.star.registry.XRegistryKey # \ #-Tcom.sun.star.sheet.addin.XQL ALL : $(FLAG6) # this copy gets around problems with spaces in pathnames $(URD_FILE) : $(COMPONENT_NAME).idl copy $(COMPONENT_NAME).idl $(TEMP) idlc -I$(IDL_DIR) "$(TEMP)\$(COMPONENT_NAME).idl" "$(INT_DIR)" : if not exist "$(INT_DIR)/$(NULL)" mkdir "$(INT_DIR)" "$(DLL_DIR)" : if not exist "$(DLL_DIR)/$(NULL)" mkdir "$(DLL_DIR)" $(FLAG1) : $(URD_FILE) $(INT_DIR) regmerge $(RDB_FILE) /UCR $(URD_FILE) echo flagged > $@ $(FLAG2) : $(FLAG1) cppumaker -BUCR $(TYPES) $(DKREGISTRYNAME) $(RDB_FILE) echo flagged > $@ $(OBJECTS) : $(FLAG2) .cpp{$(INT_DIR)}.obj: $(CC) $(CPP_PROJ) $< $(FLAG3) : $(FLAG1) $(OBJECTS) $(LINK) $(LFLAGS) $(OBJECTS) echo flagged > $@ $(FLAG4) : $(FLAG3) regcomp -register -r $(RDB_FILE) -c $(DLL_FILE) echo flagged > $@ $(FLAG5) : $(FLAG4) $(DLL_DIR) move $(DLL_NAME).* $(DLL_DIR) echo flagged > $@ $(FLAG6) : $(FLAG5) copy $(DLL_DIR)\$(RDB_FILE) "$(OFFICE_PROGRAM_PATH)" copy $(DLL_DIR)\$(DLL_FILE) "$(OFFICE_PROGRAM_PATH)" echo flagged > $@ CLEAN : -@ if EXIST com rmdir /q /s com -@ if EXIST "$(INT_DIR)\*" del /f /q "$(INT_DIR)\*" -@ if EXIST "$(DLL_DIR)\*" del /f /q "$(DLL_DIR)\*" -@ if EXIST $(URD_FILE) del /f /q $(URD_FILE) eric ehlers <[hidden email]> wrote: Hi Joe, A man is not the center of his universe, rather those he loves are. So his focus should always be on them for they will provide him with love and happiness all of his life - Anonymous
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. |
Hi Joe,
Thanks very much for sending through the modified makefile. I'll start from that for getting Calc up to speed in CVS. Unfortunately I can't look at this right away as I have some other things on my plate but I'll give you a shout as soon as it's all fixed. Attachments sent to the mailing list are ignored. Regards, Eric On 4/20/06, Joe Byers <[hidden email]> wrote: > > eric, > > My buildlog.htm and modifications I made to the MakeFile.vc.debug.crtdll are below. I had a couple of typo's in the makefile to fix. The XQL.hdl file is not found as I pointed out in a previous post. I also apologize for the length. Does the mailing list allow for attachements? > > thanx joe > > > > > Build Log > > ------- Build started: Project: AddinCalc, Configuration: Debug CRTDLL|Win32 ------- > > > > Environment Space > ALLUSERSPROFILE=C:\Documents and Settings\All Users > APPDATA=C:\Documents and Settings\BYERSJ\Application Data > BOOST_DIR=C:\Boost\include\boost-1_33 > CLASSPATH="C:\Program Files\Java\j2re1.4.2_03\lib\ext\QTJava.zip" > CommonProgramFiles=C:\Program Files\Common Files > COMPUTERNAME=BYERSJ > ComSpec=C:\WINDOWS\system32\cmd.exe > FP_NO_HOST_CHECK=NO > HOMEDRIVE=h: > HOMEPATH=\ > HOMESHARE=\\bahfs1\home\BYERSJ > INCLUDE=C:\Boost\include\boost-1_33;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include > LIB=C:\Program > > Files\Microsoft Visual Studio .NET 2003\Vc7\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib > LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 > LOG4CXX_DIR=C:\Libraries\log4cxx-0.9.7 > LOGONSERVER=\\WRMCDC > MSVC_DIR=C:\Program Files\Microsoft Visual Studio .NET 2003\vc7\Bin > NUMBER_OF_PROCESSORS=2 > OBJECT_HANDLER_DIR=C:\Progra~1\ObjectHandler-0.1.3 > OFFICE_PROGRAM_PATH=d:\Progra~1\OpenOffice.org 2.0\program > OFFICE_SDK_PATH=C:\Progra~1\OpenOffice.org_2.0_SDK > OOSDK=C:\Progra~1\OpenOffice.org_2.0_SDK\windows\bin > OS=Windows_NT > Path=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin;C:\Program Files\Microsoft Visual Studio .NET > > 2003\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\tools;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\ide;C:\Program Files\HTML Help Workshop\;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;D:\MinGW\bin\;D:\cygwin\bin;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progra~1\OpenOffice.org_2.0_SDK;C:\Program Files\OpenOffice.org_2.0_SDK\windows\bin;d:\Progra~1\OpenOffice.org 2.0\program;C:\Progra~1\OpenOffice.org_2.0_SDK\windows\idl;C:\Boost\include\boost-1_33;C:\Program Files\Microsoft Visual Studio .NET 2003\vc7\Bin > PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > PROCESSOR_ARCHITECTURE=x86 > PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel > PROCESSOR_LEVEL=15 > PROCESSOR_REVISION=0401 > > > ProgramFiles=C:\Program Files > QLXL_DIR=C:\Program Files\QuantLibXL > QL_DIR=C:\Libraries\QuantLib-0.3.12 > QTJAVA="C:\Program Files\Java\j2re1.4.2_03\lib\ext\QTJava.zip" > QUANTLIBADDIN_DIR=C:\libraries\QuantLibAddin-0.3.12 > SESSIONNAME=Console > SystemDrive=C: > SystemRoot=C:\WINDOWS > TEMP=d:\Temp > TMP=d:\Temp > USERDOMAIN=BAHNET1 > USERNAME=BYERSJ > USERPROFILE=C:\Documents and Settings\BYERSJ > VS71COMNTOOLS=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\ > windir=C:\WINDOWS > _ACP_ATLPROV=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\ATLPROV.DLL > _ACP_INCLUDE=C:\Boost\include\boost-1_33;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\prerelease;C:\Program Files\Microsoft Visual Studio .NET > > 2003\Vc7\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include > _ACP_LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib > _ACP_PATH=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\tools;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\ide;C:\Program Files\HTML Help Workshop\;C:\Program Files\Microsoft Visual Studio .NET > > 2003\SDK\v1.1\bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;D:\MinGW\bin\;D:\cygwin\bin;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progra~1\OpenOffice.org_2.0_SDK;C:\Program Files\OpenOffice.org_2.0_SDK\windows\bin;d:\Progra~1\OpenOffice.org 2.0\program;C:\Progra~1\OpenOffice.org_2.0_SDK\windows\idl;C:\Boost\include\boost-1_33;C:\Program Files\Microsoft Visual Studio .NET 2003\vc7\Bin > > > Command Lines > > > Creating temporary file "d:\Temp\BAT000009.bat" with contents > [ > @echo off > nmake /f "Makefile.vc.debug.crtdll" /a > if errorlevel 1 goto VCReportError > goto VCEnd > :VCReportError > > echo Project : error PRJ0019: A tool > > > returned an error code from "Performing Makefile project actions" > > exit 1 > :VCEnd > ] > Creating command line "d:\Temp\BAT000009.bat" > > > > Output Window > > Performing Makefile project actions > Microsoft (R) Program Maintenance Utility Version 7.10.3077 > Copyright (C) Microsoft Corporation. All rights reserved. > copy QuantLibAddin.idl d:\Temp > 1 file(s) copied. > idlc -IC:\Progra~1\OpenOffice.org_2.0_SDK\idl "d:\Temp\QuantLibAddin.idl" > idlc: compile 'd:\Temp\QuantLibAddin.idl' ... > idlc: returned successful > Sun Microsystems (R) idlc Version 1.1 > if not exist "build\vc71\DebugMTDLL/" mkdir "build\vc71\DebugMTDLL" > regmerge > > QuantLibAddin-vc71-mt-gd-0_3_12.rdb /UCR QuantLibAddin.urd > echo flagged > build\vc71\DebugMTDLL\QuantLibAddin.flag1 > > cppumaker -BUCR -Tcom.sun.star.sheet.XAddIn -Tcom.sun.star.lang.XServiceName -Tcom.sun.star.lang.XServiceInfo -Tcom.sun.star.uno.XWeak -Tcom.sun.star.lang.XSingleServiceFactory -Tcom.sun.star.lang.XMultiServiceFactory -Tcom.sun.star.uno.XAggregation -Tcom.sun.star.lang.XTypeProvider -Tcom.sun.star.uno.XComponentContext -Tcom.sun.star.lang.XSingleComponentFactory -Tcom.sun.star.registry.XRegistryKey "d:\Progra~1\OpenOffice.org 2.0\program\types.rdb" QuantLibAddin-vc71-mt-gd-0_3_12.rdb > echo flagged > build\vc71\DebugMTDLL\QuantLibAddin.flag2 > "C:\Program Files\Microsoft Visual Studio .NET 2003\vc7\Bin\CL" /nologo /MDd /W3 /Gm /GR /GX /Zi /Od /GZ -I. -I..\.. -I"C:\Libraries\QuantLib-0.3.12" -I"C:\Progra~1\ObjectHandler-0.1.3" -I"C:\Progra~1\OpenOffice.org_2.0_SDK\include" -I"C:\Boost\include\boost-1_33" /DWIN32 /D_DEBUG > /D_WINDOWS > /D_MBCS /D_USRDLL /Fp"build\vc71\DebugMTDLL\QuantLibAddin.pch" /YX /Fo"build\vc71\DebugMTDLL\\" /Fd"build\vc71\DebugMTDLL\\" /FD /c "basic.cpp" > basic.cpp > com\sun\star\sheet\addin\XQL.hpp(5) : fatal error C1083: Cannot open include file: 'com/sun/star/sheet/addin/XQL.hdl': No such file or directory > NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\vc7\Bin\CL"' : return code '0x2' > > Stop. > Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions" > > > > Results > > Build log was saved at > "file://c:\Libraries\QuantLibAddin-0.3.12\Addins\Calc\build\vc71\DebugCRTDLL\BuildLog.htm" > AddinCalc - 3 > error(s), 0 warning(s) > > > > > ____________MAKEFILE > > # QuantLibAddin\Addins\Calc\Makefile.msdev.debug > > COMPONENT_NAME=QuantLibAddin > !IF "$(CLVER)" == "" > DLL_NAME=$(COMPONENT_NAME)-vc6-mt-gd-0_3_12 > !ELSE > DLL_NAME=$(COMPONENT_NAME)-vc$(CLVER)-mt-gd-0_3_12 > !ENDIF > #added by joe byers to overide above > DLL_NAME=$(COMPONENT_NAME)-vc71-mt-gd-0_3_12 > > DLL_DIR=dll > IDL_DIR=$(OFFICE_SDK_PATH)\idl > > !IF "$(BOOST_DIR)" == "" > BOOST_DIR="C:\boost_1_31_0" > !ENDIF > > DKREGISTRYNAME="$(OFFICE_PROGRAM_PATH)\types.rdb" > > #changed MCVCDIR to MSVC_DIR by joe byers > !IF "$(MSVC_DIR)" == "" > MSVC_DIR=C:\Program Files\Microsoft Visual Studio\VC98 > !ELSE > MSVC_DIR=$(MSVC_DIR) > !ENDIF > > !IF "$(CLVER)" == "" > INT_DIR=build\vc6\DebugMTDLL > !ELSE > INT_DIR=build\vc$(CLVER)\DebugMTDLL > !ENDIF > #added by joe byers to overide above > INT_DIR=build\vc71\DebugMTDLL > > FLAG1=$(INT_DIR)\$(COMPONENT_NAME).flag1 > FLAG2=$(INT_DIR)\$(COMPONENT_NAME).flag2 > FLAG3=$(INT_DIR)\$(COMPONENT_NAME).flag3 > FLAG4=$(INT_DIR)\$(COMPONENT_NAME).flag4 > FLAG5=$(INT_DIR)\$(COMPONENT_NAME).flag5 > FLAG6=$(INT_DIR)\$(COMPONENT_NAME).flag6 > URD_FILE=$(COMPONENT_NAME).urd > RDB_FILE=$(DLL_NAME).rdb > DLL_FILE=$(DLL_NAME).dll > CC="$(MSVC_DIR)\BIN\CL" > # modified by joe byers to default VC71 env var > CC="$(MSVC_DIR)\CL" > CC_FLAGS=/nologo /MDd /W3 /Gm /GR /GX /Zi /Od /GZ > CC_INCLUDES=-I. -I..\.. -I"$(QL_DIR)" -I"$(OBJECT_HANDLER_DIR)" \ > -I"$(OFFICE_SDK_PATH)\include" -I"$(BOOST_DIR)" > CC_DEFINES=/DWIN32 /D_DEBUG /D_WINDOWS /D_MBCS /D_USRDLL > CC_FLAGS2=/Fp"$(INT_DIR)\$(COMPONENT_NAME).pch" /YX /Fo"$(INT_DIR)\\" /Fd"$(INT_DIR)\\" /FD /c > CPP_PROJ=$(CC_FLAGS) $(CC_INCLUDES) $(CC_DEFINES) $(CC_FLAGS2) > OBJECTS= \ > "$(INT_DIR)\basic.obj" \ > "$(INT_DIR)\calcutils.obj" \ > "$(INT_DIR)\capfloor.obj" \ > "$(INT_DIR)\couponvectors.obj" \ > "$(INT_DIR)\funcdef.obj" \ > "$(INT_DIR)\instruments.obj" \ > "$(INT_DIR)\interpolation.obj" \ > "$(INT_DIR)\ohfunctions.obj" \ > "$(INT_DIR)\options.obj" \ > "$(INT_DIR)\processes.obj" \ > "$(INT_DIR)\qladdin.obj" \ > "$(INT_DIR)\schedule.obj" \ > "$(INT_DIR)\session.obj" \ > "$(INT_DIR)\shortratemodels.obj" \ > "$(INT_DIR)\simpleswap.obj" \ > "$(INT_DIR)\swap.obj" \ > "$(INT_DIR)\termstructures.obj" \ > "$(INT_DIR)\utilities.obj" \ > "$(INT_DIR)\volatilities.obj" \ > "$(INT_DIR)\xibor.obj" > > LINK="$(MSVC_DIR)\BIN\LINK" /nologo > LFLAGS=msvcrtd.lib msvcprtd.lib kernel32.lib wsock32.lib \ > oldnames.lib netapi32.lib advapi32.lib gdi32.lib comdlg32.lib \ > comctl32.lib user32.lib winspool.lib shell32.lib ole32.lib \ > oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \ > icppu.lib icppuhelper.lib isal.lib log4cxxs-vc6-mt-gd.lib \ > /nologo /dll /pdb:$(INT_DIR)\$(COMPONENT_NAME).pdb /debug /machine:I386 \ > /def:.\$(COMPONENT_NAME).def /out:$(DLL_FILE) \ > /pdbtype:sept /libpath:. /libpath:..\..\lib /libpath:"$(OFFICE_SDK_PATH)\windows\lib" \ > /libpath:"$(QL_DIR)\lib" /libpath:"$(OBJECT_HANDLER_DIR)\lib" \ > /libpath:"$(LOG4CXX_DIR)\msvc\Lib" > > !IF "$(OS)" == "Windows_NT" > NULL= > !ELSE > NULL=nul > !ENDIF > > > TYPES = -Tcom.sun.star.sheet.XAddIn \ > > -Tcom.sun.star.lang.XServiceName \ > -Tcom.sun.star.lang.XServiceInfo \ > -Tcom.sun.star.uno.XWeak \ > -Tcom.sun.star.lang.XSingleServiceFactory \ > -Tcom.sun.star.lang.XMultiServiceFactory \ > -Tcom.sun.star.uno.XAggregation \ > -Tcom.sun.star.lang.XTypeProvider \ > -Tcom.sun.star.uno.XComponentContext \ > -Tcom.sun.star.lang.XSingleComponentFactory \ > -Tcom.sun.star.registry.XRegistryKey > # \ > #-Tcom.sun.star.sheet.addin.XQL > > > ALL : $(FLAG6) > > # this copy gets around problems with spaces in pathnames > $(URD_FILE) : $(COMPONENT_NAME).idl > copy $(COMPONENT_NAME).idl $(TEMP) > idlc -I$(IDL_DIR) "$(TEMP)\$(COMPONENT_NAME).idl" > > "$(INT_DIR)" : > if not exist "$(INT_DIR)/$(NULL)" mkdir "$(INT_DIR)" > > "$(DLL_DIR)" : > if not exist "$(DLL_DIR)/$(NULL)" mkdir "$(DLL_DIR)" > > $(FLAG1) : $(URD_FILE) $(INT_DIR) > regmerge $(RDB_FILE) /UCR $(URD_FILE) > echo flagged > $@ > > $(FLAG2) : $(FLAG1) > cppumaker -BUCR $(TYPES) $(DKREGISTRYNAME) $(RDB_FILE) > echo flagged > $@ > > $(OBJECTS) : $(FLAG2) > > .cpp{$(INT_DIR)}.obj: > $(CC) $(CPP_PROJ) $< > > $(FLAG3) : $(FLAG1) $(OBJECTS) > $(LINK) $(LFLAGS) $(OBJECTS) > echo flagged > $@ > > $(FLAG4) : $(FLAG3) > regcomp -register -r $(RDB_FILE) -c $(DLL_FILE) > echo flagged > $@ > > $(FLAG5) : $(FLAG4) $(DLL_DIR) > move $(DLL_NAME).* $(DLL_DIR) > echo flagged > $@ > > $(FLAG6) : $(FLAG5) > copy $(DLL_DIR)\$(RDB_FILE) "$(OFFICE_PROGRAM_PATH)" > copy $(DLL_DIR)\$(DLL_FILE) "$(OFFICE_PROGRAM_PATH)" > echo flagged > $@ > > CLEAN : > -@ if EXIST com rmdir /q /s com > -@ if EXIST "$(INT_DIR)\*" del /f /q "$(INT_DIR)\*" > -@ if EXIST "$(DLL_DIR)\*" del /f /q "$(DLL_DIR)\*" > -@ if EXIST $(URD_FILE) del /f /q $(URD_FILE) > > > eric ehlers <[hidden email]> wrote: > > > Hi Joe, > > I believe that error results from using OpenOffice.org SDK version 2 > instead of version 1. I developed QLA Calc 0.3.12 using VC6, OOo 1. > Now when I try to compile using OOo 2 (VC6 or 7) I get the same error > as you. > > In CVS I'm in the process of upgrading the QLA Calc Windows > environment to VC7 and OOo 2. Once that's done I'll get back to you > and hopefully you'll be able to either apply the fixes to your 0.3.12 > environment or grab the CVS code. > > I'm very interested to see that you're looking at the Calc addin - and > I gather you successfully compiled it under the previous release of > QuantLibAddin (0.3.11)? Before now I wasn't aware of anyone apart > from myself having compiled the Calc addin. It would be great to get > the project into more general use and iron out the problems. > > Regards, > Eric > > > On 4/20/06, Joe Byers wrote: > > Can anyone help with the following error in compiling and linking the OO > > Calc addin? The cpumaker step is bombing with a failure > > of the XLQ include. > > > > Also the makefile for the all addin projects has the environment variable > > $(CLVER) in it that defaults > > to VC6. This is not created when MSVC installs and I could not find > > it being required in the Quantlib addin documents or where it is set in > > MSVC. I just hard coded my 7.1 version. > > > > Thank you > > Joe Byers > > > > > > Performing Makefile project actions > > Microsoft (R) Program Maintenance Utility Version 7.10.3077 > > Copyright (C) Microsoft Corporation. All rights reserved. > > copy QuantLibAddin.idl d:\Temp > > 1 file(s) copied. > > idlc -IC:\Progra~1\OpenOffice.org_2.0_SDK\idl > > "d:\Temp\QuantLibAddin.idl" > > idlc: compile 'd:\Temp\QuantLibAddin.idl' ... > > idlc: returned successful > > Sun Microsystems (R) idlc Version 1.1 > > if not exist "build\vc71\DebugMTDLL/" mkdir > > "build\vc71\DebugMTDLL" > > regmerge QuantLibAddin-vc71-mt-gd-0_3_12.rdb /UCR > > QuantLibAddin.urd > > echo flagged > build\vc71\DebugMTDLL\QuantLibAddin.flag1 > > cppumaker -BUCR -Tcom.sun.star.sheet.XAddIn > > -Tcom.sun.star.lang.XServiceName -Tcom.sun.star.lang.XServiceInfo > > -Tcom.sun.star.uno.XWeak > > -Tcom.sun.star.lang.XSingleServiceFactory > > -Tcom.sun.star.lang.XMultiServiceFactory > > -Tcom.sun.star.uno.XAggregation > > -Tcom.sun.star.lang.XTypeProvider > > -Tcom.sun.star.uno.XComponentContext > > -Tcom.sun.star.lang.XSingleComponentFactory > > -Tcom.sun.star.registry.XRegistryKey > > -Tcom.sun.star.sheet.addin.XQL "d:\Progra~1\OpenOffice.org > > 2.0\program\types.rdb" QuantLibAddin-vc71-mt-gd-0_3_12.rdb > > cppumaker ERROR: cannot dump Type 'com/sun/star/sheet/addin/XQL' > > NMAKE : fatal error U1077: 'cppumaker' : return code '0x63' > > Stop. > > Project : error PRJ0019: A tool returned an error code from "Performing > > Makefile project actions" > > > > > > > > A man is not the center of his universe, rather those he loves are. So his > > focus should always be on them for they will provide him with love and > > happiness all of his life - Anonymous > > > > ________________________________ > > Blab-away for as little as 1�/min. Make PC-to-Phone Calls using Yahoo! > > Messenger with Voice. > > > > > > > > > > > > A man is not the center of his universe, rather those he loves are. So his focus should always be on them for they will provide him with love and happiness all of his life - Anonymous > > > ________________________________ rates starting at 1¢/min. > > |
Eric,
I am getting a link error and not sure what the problem is. I am attaching the makefile that I have modified. As before, I have retained you original file and added comments above the lines that I changed. The log4cxx was a problem until I found the hard coded reference to vc6 version. I created a variable to hold a dynamic log4cxx file name but hard coded it at the beginning of the makefile where the vc version is checked. I hope this helps you out. I will continue to work on this next week. Joe ********** makefile ******** # QuantLibAddin\Addins\Calc\Makefile.msdev.debug COMPONENT_NAME=QuantLibAddin !IF "$(CLVER)" == "" DLL_NAME=$(COMPONENT_NAME)-vc6-mt-gd-0_3_12 !ELSE DLL_NAME=$(COMPONENT_NAME)-vc$(CLVER)-mt-gd-0_3_12 !ENDIF #added by joe byers to overide above and to set up the 71 version of log4cxx DLL_NAME=$(COMPONENT_NAME)-vc71-mt-gd-0_3_12 LOG4X_NAME=log4cxxs-vc71-mt.lib DLL_DIR=dll IDL_DIR=$(OFFICE_SDK_PATH)\idl !IF "$(BOOST_DIR)" == "" BOOST_DIR="C:\boost_1_31_0" !ENDIF DKREGISTRYNAME="$(OFFICE_PROGRAM_PATH)\types.rdb" #changed MCVSDIR to MSVC_DIR by joe byers !IF "$(MSVC_DIR)" == "" MSVC_DIR=C:\Program Files\Microsoft Visual Studio\VC98 !ELSE MSVC_DIR=$(MSVC_DIR) !ENDIF !IF "$(CLVER)" == "" INT_DIR=build\vc6\DebugMTDLL !ELSE INT_DIR=build\vc$(CLVER)\DebugMTDLL !ENDIF #added by joe byers to overide above and bring in line with OH and QL configurations INT_DIR=build\vc71\DebugCRTDLL FLAG1=$(INT_DIR)\$(COMPONENT_NAME).flag1 FLAG2=$(INT_DIR)\$(COMPONENT_NAME).flag2 FLAG3=$(INT_DIR)\$(COMPONENT_NAME).flag3 FLAG4=$(INT_DIR)\$(COMPONENT_NAME).flag4 FLAG5=$(INT_DIR)\$(COMPONENT_NAME).flag5 FLAG6=$(INT_DIR)\$(COMPONENT_NAME).flag6 URD_FILE=$(COMPONENT_NAME).urd RDB_FILE=$(DLL_NAME).rdb DLL_FILE=$(DLL_NAME).dll CC="$(MSVC_DIR)\BIN\CL" # modified by joe byers to default VC71 env var CC="$(MSVC_DIR)\CL" # /nolog enough said /MDd multithread debug /w3 warning level /Gm minimu rebuild, #/GR enable runtime type info /zi edit and continue /od disabled optimization #/GZ __stdcall same as RTC1 #/GX exception handling default on CC_FLAGS=/nologo /MDd /W3 /Gm /GR /GX /Zi /Od /GZ CC_INCLUDES=-I. -I..\.. -I"$(QL_DIR)" -I"$(OBJECT_HANDLER_DIR)" \ -I"$(OFFICE_SDK_PATH)\include" -I"$(BOOST_DIR)" # preprocessor defines some inherited CC_DEFINES=/DWIN32 /D_DEBUG /D_WINDOWS /D_MBCS /D_USRDLL # modified CC_defines from fatal error c1189 CC_DEFINES=/DWIN32 /D_DEBUG /DWINDOWS /D_MBCS /D_USRDLL /DWNT #/DWINNT #/DCPPU_ENV=msci #-DWIN32 -DWNT -DCPPU_ENV=msci #/YX autogenerate precompiler /fp precompiler header file #/fo object file name /fd program database file name #/c suppress comment strip CC_FLAGS2=/Fp"$(INT_DIR)\$(COMPONENT_NAME).pch" /YX /Fo"$(INT_DIR)\\" /Fd"$(INT_DIR)\\" /FD /c CPP_PROJ=$(CC_FLAGS) $(CC_INCLUDES) $(CC_DEFINES) $(CC_FLAGS2) OBJECTS= \ "$(INT_DIR)\basic.obj" \ "$(INT_DIR)\calcutils.obj" \ "$(INT_DIR)\capfloor.obj" \ "$(INT_DIR)\couponvectors.obj" \ "$(INT_DIR)\funcdef.obj" \ "$(INT_DIR)\instruments.obj" \ "$(INT_DIR)\interpolation.obj" \ "$(INT_DIR)\ohfunctions.obj" \ "$(INT_DIR)\options.obj" \ "$(INT_DIR)\processes.obj" \ "$(INT_DIR)\qladdin.obj" \ "$(INT_DIR)\schedule.obj" \ "$(INT_DIR)\session.obj" \ "$(INT_DIR)\shortratemodels.obj" \ "$(INT_DIR)\simpleswap.obj" \ "$(INT_DIR)\swap.obj" \ "$(INT_DIR)\termstructures.obj" \ "$(INT_DIR)\utilities.obj" \ "$(INT_DIR)\volatilities.obj" \ "$(INT_DIR)\xibor.obj" LINK="$(MSVC_DIR)\BIN\LINK" /nologo #change by joe byers log4cxxs-vc6-mt-gd.lib to log4cxxs-vc71-mt.lib LFLAGS=msvcrtd.lib msvcprtd.lib kernel32.lib wsock32.lib \ oldnames.lib netapi32.lib advapi32.lib gdi32.lib comdlg32.lib \ comctl32.lib user32.lib winspool.lib shell32.lib ole32.lib \ oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \ icppu.lib icppuhelper.lib isal.lib $(LOG4X_NAME) \ /nologo /dll /pdb:$(INT_DIR)\$(COMPONENT_NAME).pdb /debug /machine:I386 \ /def:.\$(COMPONENT_NAME).def /out:$(DLL_FILE) \ /pdbtype:sept /libpath:. /libpath:..\..\lib /libpath:"$(OFFICE_SDK_PATH)\windows\lib" \ /libpath:"$(QL_DIR)\lib" /libpath:"$(OBJECT_HANDLER_DIR)\lib" \ /libpath:"$(LOG4CXX_DIR)\msvc\Lib" !IF "$(OS)" == "Windows_NT" NULL= !ELSE NULL=nul !ENDIF TYPES = -Tcom.sun.star.sheet.XAddIn \ -Tcom.sun.star.lang.XServiceName \ -Tcom.sun.star.lang.XServiceInfo \ -Tcom.sun.star.uno.XWeak \ -Tcom.sun.star.lang.XSingleServiceFactory \ -Tcom.sun.star.lang.XMultiServiceFactory \ -Tcom.sun.star.uno.XAggregation \ -Tcom.sun.star.lang.XTypeProvider \ -Tcom.sun.star.uno.XComponentContext \ -Tcom.sun.star.lang.XSingleComponentFactory \ -Tcom.sun.star.registry.XRegistryKey \ -Tcom.sun.star.sheet.addin.XQL ALL : $(FLAG6) # this copy gets around problems with spaces in pathnames $(URD_FILE) : $(COMPONENT_NAME).idl copy $(COMPONENT_NAME).idl $(TEMP) idlc -I$(IDL_DIR) "$(TEMP)\$(COMPONENT_NAME).idl" "$(INT_DIR)" : if not exist "$(INT_DIR)/$(NULL)" mkdir "$(INT_DIR)" "$(DLL_DIR)" : if not exist "$(DLL_DIR)/$(NULL)" mkdir "$(DLL_DIR)" #added TEMP reference by joe byers to get regmerge to merge URD file $(FLAG1) : $(URD_FILE) $(INT_DIR) regmerge $(RDB_FILE) /UCR "$(TEMP)\$(URD_FILE)" echo flagged > $@ $(FLAG2) : $(FLAG1) cppumaker -BUCR $(TYPES) $(DKREGISTRYNAME) $(RDB_FILE) echo flagged > $@ $(OBJECTS) : $(FLAG2) .cpp{$(INT_DIR)}.obj: $(CC) $(CPP_PROJ) $< $(FLAG3) : $(FLAG1) $(OBJECTS) $(LINK) $(LFLAGS) $(OBJECTS) echo flagged > $@ $(FLAG4) : $(FLAG3) regcomp -register -r $(RDB_FILE) -c $(DLL_FILE) echo flagged > $@ $(FLAG5) : $(FLAG4) $(DLL_DIR) move $(DLL_NAME).* $(DLL_DIR) echo flagged > $@ $(FLAG6) : $(FLAG5) copy $(DLL_DIR)\$(RDB_FILE) "$(OFFICE_PROGRAM_PATH)" copy $(DLL_DIR)\$(DLL_FILE) "$(OFFICE_PROGRAM_PATH)" echo flagged > $@ CLEAN : -@ if EXIST "$(INT_DIR)\*" del /f /q "$(INT_DIR)\*" -@ if EXIST "$(DLL_DIR)\*" del /f /q "$(DLL_DIR)\*" -@ if EXIST "$(TEMP)\$(URD_FILE)" del /f /q "$(TEMP)\$(URD_FILE)" -@ if EXIST com rmdir /q /s com eric ehlers <[hidden email]> wrote: Hi Joe, A man is not the center of his universe, rather those he loves are. So his focus should always be on them for they will provide him with love and happiness all of his life - Anonymous
Yahoo! Mail goes everywhere you do. Get it on your phone. |
Free forum by Nabble | Edit this page |