Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » how to import vc++ project in Eclipse IDE
how to import vc++ project in Eclipse IDE [message #1840488] Fri, 16 April 2021 11:03 Go to next message
Asha Diggi is currently offline Asha DiggiFriend
Messages: 7
Registered: April 2021
Junior Member
Hi all,

I am trying to build VC++ application in Eclipse IDE,

Can anyone suggest me steps to build VC++ application in Eclipse IDE.


With regards,
Asha.S.D
Re: how to import vc++ project in Eclipse IDE [message #1840493 is a reply to message #1840488] Fri, 16 April 2021 13:11 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
If it is an existing project:

Generally, you use Visual Studio to export a makefile.
You then import the source and makefile into an Eclipse project as a Makefile Project.

If you want to use Visual C/C++ as your toolchain in a new project:

  • Install Visual support
    Help --> Install New Software --> Programming Languages --> C/C++ Visual C++ Support
    You need to set "Work with" to All Available Sites or the link to the Eclipse update site for your version

  • Create a new project and select Visual C/C++ as your toolchain


Here are more detailed instructions
https://www.pascal-man.com/gpu-cuda/Eclipse_Visual_C.shtml

https://stackoverflow.com/questions/41401515/visual-studio-toolchain-in-eclipse-for-c

UPDATE
There is an entry in the Eclipse wiki but it is a broken link
https://wiki.eclipse.org/Eclipse_Articles,_Tutorials,_Demos,_Books,_and_More?id=291#Migrate_Visual_Studio_C_and_C.2B.2B_projects_to_Eclipse_CDT

I don't currently have access to a Windows machine and can't install Visual Studio so I'm unable to answer any detailed questions.

[Updated on: Fri, 16 April 2021 13:14]

Report message to a moderator

Re: how to import vc++ project in Eclipse IDE [message #1842402 is a reply to message #1840493] Thu, 17 June 2021 17:17 Go to previous messageGo to next message
Asha Diggi is currently offline Asha DiggiFriend
Messages: 7
Registered: April 2021
Junior Member
Hi ,

Thankyou so much for the reply,
I installed the tool chain(i am going to attach the screenshot : capture).

After this trying to import a file from vc++.

File->open projects from file system but I am not able to select a folder(screenshot : capture1).

Regards,
Asha.

  • Attachment: Capture.PNG
    (Size: 36.50KB, Downloaded 63 times)
Re: how to import vc++ project in Eclipse IDE [message #1842405 is a reply to message #1842402] Thu, 17 June 2021 20:27 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Not sure what you are trying to do.
Adding the VC++ toolchain only allows Eclipse to build makefiles using the command line tools from Microsoft.
And you can only add the toolchain if you have Visual C installed.

Opening a project can only open Eclipse projects.
As far as I know, it knows nothing about visual c++ project files.
Only VC++ can read visual project files.

If you have an existing visual c++ project,
you have to import the project as an Eclipse Makefile Project
but you have to create the initial makefile using Visual C++.

You can of course create a new Managed Build project
which uses the Microsoft compiler and linker
then add other C/C++ source files as needed.

I'm believe the links I provided show how.
Re: how to import vc++ project in Eclipse IDE [message #1842489 is a reply to message #1842405] Mon, 21 June 2021 16:04 Go to previous messageGo to next message
Asha Diggi is currently offline Asha DiggiFriend
Messages: 7
Registered: April 2021
Junior Member
Hi Sir

Thanks for the response.
I gone through the sent links able to create a projects(vc++) in eclipse IDE and able to see results also.

>Not sure what you are trying to do.
I will tell you in detail:

I have a RTOS Application, which is developed in VC++(MFC )...

My job is : I need to check the code correctness of the Application(VC++), for this I have a another software,this software integrated with Eclipse IDE, to use the software I need to build the application in Eclipse IDE.

so I am facing difficulties to build my VC++ application in Eclipse IDE,After building the application I can check my code correctness also, the software will not work without building the Application.

I am able to build the Application in Visual studio 2010,now I am trying to build in Eclipse IDE(I installed Visual studio toolchain)...as you suggested we build it importing as a makefile, could you suggest me how to generate a makefile in visual stdio,
Re: how to import vc++ project in Eclipse IDE [message #1842491 is a reply to message #1842489] Mon, 21 June 2021 16:14 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
You need to read the VC++ documentation
Or get it online at the Microsoft Developers Network (MSDN)
MSDN may require a subscription.

Maybe this will help
https://docs.microsoft.com/en-us/cpp/build/reference/creating-a-makefile-project?view=msvc-160
https://social.msdn.microsoft.com/Forums/en-US/22ea31cb-0feb-4ff5-a607-58d5727fd34d/how-generate-makefile-from-visual-studio-solution?forum=vcgeneral

You have to have Visual C/C++ installed to use the toolchain.
So I don't understand why you can't use Visual if you are able to successfully use the toolchain.

[Updated on: Mon, 21 June 2021 16:17]

Report message to a moderator

Previous Topic:Generating .so library with C code.
Next Topic:GCOV plugin error in latest update for plugin version 8.3.0
Goto Forum:
  


Current Time: Tue Apr 16 05:15:42 GMT 2024

Powered by FUDForum. Page generated in 0.07829 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top