List Info

Thread: Dynamic Library Problem with Visual C++ 2005 Express




Dynamic Library Problem with Visual C++ 2005 Express
country flaguser name
United States
2007-03-16 10:10:09
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
QuantLib-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib
-users

Re: Dynamic Library Problem with Visual C++ 2005 Express
country flaguser name
United States
2007-03-16 17:56:01
Ok, this is a change to my original question. Instead of
trying to make a link
library, I've used the instructions at http://quan
tlib.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 FilesMicrosoft Visual Studio
8VCincludecstdio(25) : error
C2039: 'fpos_t' : is not a member of '`global namespace''
1>C:Program FilesMicrosoft Visual Studio
8VCincludecstdio(25) : error
C2873: 'fpos_t' : symbol cannot be used in a
using-declaration
1>C:Program FilesMicrosoft Visual Studio
8VCincludecstdio(25) : error
C2039: 'FILE' : is not a member of '`global namespace''
1>C:Program FilesMicrosoft Visual Studio
8VCincludecstdio(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
QuantLib-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib
-users

Re: Dynamic Library Problem with Visual C++ 2005 Express
country flaguser name
United States
2007-03-17 14:02:04
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
QuantLib-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib
-users

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )