INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

How to use Dlib in C++Builder

How to use Dlib in C++Builder

(OP)
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.

RE: How to use Dlib in C++Builder

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!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close