For some reason I can compile the solution file with no problems, but when I try
and use the .dll in another program, I get the error "Could not add reference to file 'c:\...' because it is neither a .net assembly or registered activex control." How do I get around that? Any advice would be greatly appreciated. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Ok, this is a change to my original question. Instead of trying to make a link
library, I've used the instructions at http://quantlib.org/reference/usage.html. I've used #include <ql/quantlib.hpp>, but have two problems: 1. If I try to use the suggestions for Code Generation on usage.html, then I get an error that the settings are incompatible. 2. If I don't change the settings, then I get errors of the sort: 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(25) : error C2039: 'fpos_t' : is not a member of '`global namespace'' 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(25) : error C2873: 'fpos_t' : symbol cannot be used in a using-declaration 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(25) : error C2039: 'FILE' : is not a member of '`global namespace'' 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\cstdio(25) : error C2873: 'FILE' : symbol cannot be used in a using-declaration And it keeps going, including errors in cstring. What's going on? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by John Maiden
As a further followup to my problem, below is the section of cstdio that is
giving me problems: #ifndef RC_INVOKED #if _GLOBAL_USING _STD_BEGIN using ::size_t; using ::fpos_t; using ::FILE; using ::clearerr; using ::fclose; using ::feof; using ::ferror; using ::fflush; using ::fgetc; using ::fgetpos; using ::fgets; using ::fopen; using ::fprintf; using ::fputc; using ::fputs; using ::fread; using ::freopen; using ::fscanf; using ::fseek; using ::fsetpos; using ::ftell; using ::fwrite; using ::getc; using ::getchar; using ::gets; using ::perror; using ::putc; using ::putchar; using ::printf; using ::puts; using ::remove; using ::rename; using ::rewind; using ::scanf; using ::setbuf; using ::setvbuf; using ::sprintf; using ::sscanf; using ::tmpfile; using ::tmpnam; using ::ungetc; using ::vfprintf; using ::vprintf; using ::vsprintf; _STD_END #endif /* _GLOBAL_USING */ #endif /* RC_INVOKED */ If I'm reading this right, then the main problem I'm having is in the inclusion of the namespace std. Yet when I try using namespace std, it doesn't work. Am I reading this problem correctly, and if so (or not), what can I do to fix it? Thanks in advance for any input. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi, I know QuantLib works well for Visual C++ 2005 Express. It also
should work well for Visual C++ 2005 if the settings of your own project are right. My suggestion: do not create your own project in the beginning and just use the QuantLib QuantLib_vc8.sln to build the library and run the samples there. If it can run the setting of your own project is not right and you need to find it out (or consult a CS guy) why. ------------------------------------ Peter Li -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of John Maiden Sent: Saturday, March 17, 2007 3:02 PM To: [hidden email] Subject: Re: [Quantlib-users]Dynamic Library Problem with Visual C++ 2005 Express As a further followup to my problem, below is the section of cstdio that is giving me problems: #ifndef RC_INVOKED #if _GLOBAL_USING _STD_BEGIN using ::size_t; using ::fpos_t; using ::FILE; using ::clearerr; using ::fclose; using ::feof; using ::ferror; using ::fflush; using ::fgetc; using ::fgetpos; using ::fgets; using ::fopen; using ::fprintf; using ::fputc; using ::fputs; using ::fread; using ::freopen; using ::fscanf; using ::fseek; using ::fsetpos; using ::ftell; using ::fwrite; using ::getc; using ::getchar; using ::gets; using ::perror; using ::putc; using ::putchar; using ::printf; using ::puts; using ::remove; using ::rename; using ::rewind; using ::scanf; using ::setbuf; using ::setvbuf; using ::sprintf; using ::sscanf; using ::tmpfile; using ::tmpnam; using ::ungetc; using ::vfprintf; using ::vprintf; using ::vsprintf; _STD_END #endif /* _GLOBAL_USING */ #endif /* RC_INVOKED */ If I'm reading this right, then the main problem I'm having is in the inclusion of the namespace std. Yet when I try using namespace std, it doesn't work. Am I reading this problem correctly, and if so (or not), what can I do to fix it? Thanks in advance for any input. ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |