News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Best Practice for importing Windows7 Visual Studio workspace to linux codeblocks

Started by Kaspatoo, February 25, 2016, 09:48:54 AM

Previous topic - Next topic

Kaspatoo

Hi,

Up to now I was developing some c++ under Windows 7 Visual Studio Express 2013.
Because the application I am developing a small component for runs on Linux (Ubuntu 14.04 LTS Desktop) I thought of developing directy under Linux so that I do not need to move the code from Windows to Linux before running make-command for the whole application.

I do not need to compile within my IDE.

When in codeblocks opening the sln-file codeblocks is importing my both projects, asking me for default compiler and debug configuration.
But then there are no files displayed. I think its because of the absolute path within the visual studio project files which additionally stand in windows-format \ and not linux format /.

Is there a best-practice described to import/convert/transfer an exisiting VS project to codeblocks?
Or would it be the best to just copy my cpp-files without VS files and create a new project? In this way I had to reconfigure my references/ dependencies.

Thanks in advance.

stahta01

How old is your Code::Blocks? What version is your Code::Blocks?

Edit1:
QuoteBut then there are no files displayed. I think its because of the absolute path within the visual studio project files which additionally stand in windows-format \ and not linux format /.

If your Code::Blocks is recent on Windows; doing a Project Save-As after importing will save with Forward Slashes.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Kaspatoo

hi,

in installed the version from apt-get install. Its version 16.01.
Its not the very latest via PPA.

QuoteIf your Code::Blocks is recent on Windows; doing a Project Save-As after importing will save with Forward Slashes.
On windows there I have microsoft visual studio 2013 express.
I am unsure what you are goind to advice me. Shall I install codeblocks on windows?

BlueHazzard

Quote from: Kaspatoo on February 25, 2016, 09:48:54 AM
Or would it be the best to just copy my cpp-files without VS files and create a new project? In this way I had to reconfigure my references/ dependencies.
i thins is the best approach. You can't use the compiler flags anyway and only importing cpp files is easy with "recursive adding" files to the project...

greetings