Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use Dlib in C++Builder

Status
Not open for further replies.

MahmoudWali

Programmer
Mar 8, 2012
1
TR
I am trying to use Dlib Library in C++Builder, but when I compile the program, the compiler gives a lot of errors.

This is compiler errors:

[bcc32 Error] algs.h(780): E2238 Multiple declaration for 'tmaxx),void>::type>'
[bcc32 Error] algs.h(778): E2344 Earlier declaration of 'tmaxx),void>::type>'
[bcc32 Error] algs.h(780): E2428 Templates must be classes or functions
[bcc32 Error] algs.h(795): E2238 Multiple declaration for 'tmin::type>'
[bcc32 Error] algs.h(793): E2344 Earlier declaration of 'tmin::type>'
[bcc32 Error] algs.h(795): E2428 Templates must be classes or functions
[bcc32 Error] complex(158): E2238 Multiple declaration for '_Ctraits::_Cosh(long double,long double)'
[bcc32 Error] complex(65): E2344 Earlier declaration of '_Ctraits::_Cosh(long double,long double)'
.
.
.
.
[bcc32 Error] complex(95): E2228 Too many error or warning messages

I create empty Console Project, adding just include path of the main folder of Dlib as mentioned in website page “How to Compile” to the project include directory.

I tried all compiler options for compatibility with ANSI C/C++, MFC, .... but with no useful.

I tried both Borland C++Builder 6 and Embarcadero RAD Studio XE7.

Any help will be highly appreciated.
 
I see you also posted this in another forum. It looks like you are loading the files twice OR another package has already declared those functions elsewhere. Look around at your header files to see something is being called again. You may have to dig into some resource files to see what else is being loaded.





James P. Cottingham
I'm number 1,229!
I'm number 1,229!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top