Help solve a problem with importing a function from a dll - page 6

 
There were mistakes in the builder.
 

Could you please send me a ready-made DLL made in Visual C++ 2005?

I'd be very, very grateful :-)

 

If Visual C++ 2005 is so easy and straightforward, it's a strong incentive to get into it.

True, it will take me quite a while, but you've convinced me anyway...

Don't think it's cheeky to ask for an already prepared DLL...

 

I can share a ready-made Dll, but I won't, for 3 reasons:

1. building this Dll is too easy, 5 minutes to work

2. I don't think the development cycle ends after you've built the Dll:

Then follows at least debugging, at most-writing tests-

3. From step 2 it follows at least that questions about problems with the code

should also be addressed to me :-).

.

Practice building the library -

It will come in handy for further programming life.

.

Don't you have any specific questions?

.

As for "everything is easy in Visual Studio"... if you don't add all the library files to Visual Studio

...if you don't add all the library files, you'll have the same set of problems.

I built both dlls in the same amount of time.

 

Generally speaking, it is important for a programmer to be able to see the error

[ILINK32 Error] Error: Unresolved external 'ap::afree(void *)' referenced from \COMP-BSN!ALGORITMS\SVD\SVD_DLL\2009.09.07\PROJECT\DEBUG_BUILD\U_SVD_DLL.OBJ

gist, which is expressed in words:

Error: Unresolved external

Actually it's not the gist, I just wiped the specifics specific to this project,

such as ILINK32, ap::afree(void *), {...}U_SVD_DLL.OBJ

.

Then it's just a matter of typing this text into Google,

http://www.google.ru/search?client=opera&rls=en&q=Error:+Unresolved+external&sourceid=opera&ie=utf-8&oe=utf-8

and go to the first link.

http://forum.shelek.ru/index.php/topic,4416.0.html

NB: if you add the word "problem", "error", you will probably get a link in Russian.

.

Well, and it would be nice to understand, in general,

why with word extern an error of linker is and without it is not.

 

I see :-)

Well, I understand you :-). I'll download Visual C++ 2005, install and study it :-))).

No specific questions yet, as I got 51 errors when adding all the files to the project in Bilder... With so many I'm just in a big stupor :-)))

Don't even know what to ask.... :-)))))

 
boysn >> :

Don't even know what to ask.... :-)))))

Probably cite the specific text of the error?

 

Yes... it all makes sense... there's still no understanding... as much as I'd like... :-)

Let's learn, learn and learn.... :-)

 

There are an awful lot of them... these errors...

[BCC32 Error] U_svd_dll.cpp(15): E2209 Unable to open include file 'stdafx.h'.
[BCC32 Error] iosfwd(254): E2238 Multiple declaration for 'char_traits<wchar_t>::int_type'
[BCC32 Error] iosfwd(136): E2344 Earlier declaration of 'char_traits<wchar_t>::int_type'
[BCC32 Error] iosfwd(260): E2238 Multiple declaration for 'char_traits<wchar_t>::assign(wchar_t &,const wchar_t &)'
[BCC32 Error] iosfwd(141): E2344 Earlier declaration of 'char_traits<wchar_t>::assign(wchar_t &,const wchar_t &)'
[BCC32 Error] iosfwd(265): E2238 Multiple declaration for 'char_traits<wchar_t>::eq(const wchar_t &,const wchar_t &)'
[BCC32 Error] iosfwd(146): E2344 Earlier declaration of 'char_traits<wchar_t>::eq(const wchar_t &,const wchar_t &)'
[BCC32 Error] iosfwd(270): E2238 Multiple declaration for 'char_traits<wchar_t>::lt(const wchar_t &,const wchar_t &)'
[BCC32 Error] iosfwd(151): E2344 Earlier declaration of 'char_traits<wchar_t>::lt(const wchar_t &,const wchar_t &)'
[BCC32 Error] iosfwd(276): E2238 Multiple declaration for 'char_traits<wchar_t>::compare(const wchar_t *,const wchar_t *,unsigned int)'
[BCC32 Error] iosfwd(156): E2344 Earlier declaration of 'char_traits<wchar_t>::compare(const wchar_t *,const wchar_t *,unsigned int)'
[BCC32 Error] iosfwd(283): E2238 Multiple declaration for 'char_traits<wchar_t>::length(const wchar_t *)'
[BCC32 Error] iosfwd(167): E2344 Earlier declaration of 'char_traits<wchar_t>::length(const wchar_t *)'
[BCC32 Error] iosfwd(290): E2238 Multiple declaration for 'char_traits<wchar_t>::copy(wchar_t *,const wchar_t *,unsigned int)'
[BCC32 Error] iosfwd(176): E2344 Earlier declaration of 'char_traits<wchar_t>::copy(wchar_t *,const wchar_t *,unsigned int)'
[BCC32 Error] iosfwd(298): E2238 Multiple declaration for 'char_traits<wchar_t>::find(const wchar_t *,unsigned int,const wchar_t &)'
[BCC32 Error] iosfwd(187): E2344 Earlier declaration of 'char_traits<wchar_t>::find(const wchar_t *,unsigned int,const wchar_t &)'
[BCC32 Error] iosfwd(305): E2238 Multiple declaration for 'char_traits<wchar_t>::move(wchar_t *,const wchar_t *,unsigned int)'
[BCC32 Error] iosfwd(197): E2344 Earlier declaration of 'char_traits<wchar_t>::move(wchar_t *,const wchar_t *,unsigned int)'
[BCC32 Error] iosfwd(312): E2238 Multiple declaration for 'char_traits<wchar_t>::assign(wchar_t *,unsigned int,wchar_t)'
[BCC32 Error] iosfwd(212): E2344 Earlier declaration of 'char_traits<wchar_t>::assign(wchar_t *,unsigned int,wchar_t)'
[BCC32 Error] iosfwd(323): E2238 Multiple declaration for 'char_traits<wchar_t>::to_int_type(const wchar_t &)'
[BCC32 Error] iosfwd(227): E2344 Earlier declaration of 'char_traits<wchar_t>::to_int_type(const wchar_t &)'
[BCC32 Error] iosfwd(334): E2238 Multiple declaration for 'char_traits<wchar_t>::eof()'
[BCC32 Error] iosfwd(238): E2344 Earlier declaration of 'char_traits<wchar_t>::eof()'
[BCC32 Error] iosfwd(355): E2238 Multiple declaration for 'char_traits<char>::assign(char &,const char &)'
[BCC32 Error] iosfwd(141): E2344 Earlier declaration of 'char_traits<char>::assign(char &,const char &)'
[BCC32 Error] iosfwd(360): E2238 Multiple declaration for 'char_traits<char>::eq(const char &,const char &)'
[BCC32 Error] iosfwd(146): E2344 Earlier declaration of 'char_traits<char>::eq(const char &,const char &)'
[BCC32 Error] iosfwd(365): E2238 Multiple declaration for 'char_traits<char>::lt(const char &,const char &)'
[BCC32 Error] iosfwd(151): E2344 Earlier declaration of 'char_traits<char>::lt(const char &,const char &)'
[BCC32 Error] iosfwd(371): E2238 Multiple declaration for 'char_traits<char>::compare(const char *,const char *,unsigned int)'
[BCC32 Error] iosfwd(156): E2344 Earlier declaration of 'char_traits<char>::compare(const char *,const char *,unsigned int)'
[BCC32 Error] iosfwd(378): E2238 Multiple declaration for 'char_traits<char>::length(const char *)'
[BCC32 Error] iosfwd(167): E2344 Earlier declaration of 'char_traits<char>::length(const char *)'
[BCC32 Error] iosfwd(385): E2238 Multiple declaration for 'char_traits<char>::copy(char *,const char *,unsigned int)'
[BCC32 Error] iosfwd(176): E2344 Earlier declaration of 'char_traits<char>::copy(char *,const char *,unsigned int)'
[BCC32 Error] iosfwd(393): E2238 Multiple declaration for 'char_traits<char>::find(const char *,unsigned int,const char &)'
[BCC32 Error] iosfwd(187): E2344 Earlier declaration of 'char_traits<char>::find(const char *,unsigned int,const char &)'
[BCC32 Error] iosfwd(400): E2238 Multiple declaration for 'char_traits<char>::move(char *,const char *,unsigned int)'
[BCC32 Error] iosfwd(197): E2344 Earlier declaration of 'char_traits<char>::move(char *,const char *,unsigned int)'
[BCC32 Error] iosfwd(407): E2238 Multiple declaration for 'char_traits<char>::assign(char *,unsigned int,char)'
[BCC32 Error] iosfwd(212): E2344 Earlier declaration of 'char_traits<char>::assign(char *,unsigned int,char)'
[BCC32 Error] iosfwd(418): E2238 Multiple declaration for 'char_traits<char>::to_int_type(const char &)'
[BCC32 Error] iosfwd(227): E2344 Earlier declaration of 'char_traits<char>::to_int_type(const char &)'
[BCC32 Error] iosfwd(429): E2238 Multiple declaration for 'char_traits<char>::eof()'
[BCC32 Error] iosfwd(238): E2344 Earlier declaration of 'char_traits<char>::eof()'
[BCC32 Error] xutility(345): E2406 Dependent type qualifier 'bool' is not a class or struct type
[BCC32 Error] xutility(346): E2406 Dependent type qualifier 'bool' is not a class or struct type
[BCC32 Error] xutility(347): E2406 Dependent type qualifier 'bool' is not a class or struct type
[BCC32 Error] xutility(347): E2228 Too many error or warning messages

 
All 24 files in the project: cpp, h
Reason: