Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7956359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:58:02+00:00 2026-06-04T03:58:02+00:00

I have a problem with merging two projects compiled separately. I created some classes

  • 0

I have a problem with merging two projects compiled separately.
I created some classes (Qt and C++) to manage two mechanical stages (first project) and one class/interface for a laser scanner (second project).
When I import the class/interface in the first project, the compiler gives me a lot of redefinition errors on some Windows api classes (the second project uses classes as winsock2).

Could someone help me to find my error? Not only my “grammatical” errors 😉

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T03:58:04+00:00Added an answer on June 4, 2026 at 3:58 am

    Just clean the project, rebuild and run again. One possibility that this may happen is you probably might have used a previous version of library in any of your project and now after merging two projects you may be using latest version of library in other project. The already existing compiled binaries of project which you have merged will be looking for different version of library, but you may have included another version of it in your 2nd project or vice versa!!After merging both appears to be in same project! So try cleaning the Project, use only latest version of library and rebuild and run.

    If you try to include both winsock.h and winsock2.h, this error will happen for sure. Because winsock2.h is a complete rewrite of winsock.h. So you would definitely get redefinition errors.

    One possible solution is ..

      Try to include winsock2.h before you include the header file(s) which is 
      including winsock.h.That will do.
    

    Or Try using only 1 version of it

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem merging two XML files. I loaded both files into two objects,
Hi I have really problem with merging two lists in such code like mergesort
I have a problem merging from trunk to my branch. I created the branch
I have problem with $_POST data. Some fields are missing from input form when
I have problem in some JavaScript that I am writing where the Switch statement
i have problem with autorotate on iphone i set up in all classes -
I'm facing the following problem : I have to merge two images A and
reference from: Merging Variable PHP I have problem with $_POST getting blank null after
I have created branches for one project, but now I have a need to
I'm using jQuery $.when function to synchronize two $.getJSON asynchronous calls I have. Merging

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.