리눅스 환경에서 c++을 쓰기 위해 많은 삽질을 하곤 합니다.

좀 더 좋은 개발환경(IDE)는 개발자들 모두가 원하는 것이고 이런 욕망이 무수한 삽질을 불러들입니다.

그러나, 만만치 않은 작업이고... 대개의 경우 삽질에 지친 많은 개발자들이 eclipse를 택하고 맙니다.


사실 우분투에서 c++을 특수 목적이 아닌 일반 개발 용도나 study 목적으로 사용하려고 한다면 eclipse는 좋은 방법은 아닙니다. eclipse는 훌륭한 IDE이긴 합니다만,  제대로 입맛에 맞게 하려면 정말 손볼 것이 너무 많고 그렇다고 그냥 쓰기엔 상성이 맞지 않는다고 할까요? 너무 젠틀해서 누구에게나 무난하게 친절한 도련님이나 숙녀분처럼 별로 재미없다고나 할까?


이럴 때 가장 좋은 대안은 wine을 이용해서 window용 c++ 도구를 사용하는 것입니다.

속도 문제를 걱정하시는 분들이 계신데, 전혀 차이 없고요~ 걱정하실 필요가 절대 없습니다.


현재 기준으로 권할 만한 IDE는 단연 dev c++이 좋습니다.


dev C++ version 5 이상 쓰시면 무난합니다. 설치도 깔끔히 잘 됩니다.

WINE 홈페이지에서도 WINE hq 호환성 리스트에 플래티넘으로 인증되어 있고요.


■ 표- dev C++ wine hg 호환성

VersionDescriptionLatest RatingLatest Wine version testedTest resultsComments
4Dev-C++ is an IDE for developing C/C++ programs (for windows).Platinum1.1.1440
4.9.9.2Last version from Bloodshed Software.Silver1.6.210
5Dev-C++ is an IDE for developing C/C++ programs (for windows).Platinum1.9.620



Wine HQ를 이용한 dev C++설치

■ Wine HQ 설치

Wine 설치는 간단합니다 아래는 Ubuntu에서 설치방법입니다. Ubuntu 16.04에서 설치가 잘 됩니다.


$ sudo apt-get install software-properties-common  

$ sudo dpkg --add-architecture i386   ## 중요. 64비트 시스템이라면 32bit도 활성화 ##

$ sudo add-apt-repository ppa:wine/wine-builds

$ sudo apt-get update

$ sudo apt-get install --install-recommends winehq-staging

$ which wine

$ wine --version


 dev C++ 다운로드


다운로드 url https://sourceforge.net/projects/orwelldevcpp/


현재 가장 최신 버전은 Dev-Cpp 5.11 TDM-GCC 4.9.2 Setup.exe 네요.

다운로드가 끝나면 이제 마지막 피날레입니다.


■ dev C++ 설치

~/Downloads$ wine Dev-Cpp 5.11 TDM-GCC 4.9.2 Setup.exe


이후부터는 윈도우 설치와 동일한 화면을 볼 수 있습니다.


■ 기타

다음 대안으로는 visual studio 2110 express 버전이 골드 등급이라고 되어 있는데요.. 

믿지마세요. 사실 상 아래 나와있는 다른 visual studio 형제들처럼 그냥 쓰레기입니다.

굳이 설치하려 하면 web install 버전은 설치가 안되고 full install 버전을 따로 받으셔야 합니다.

그런데 요즘 2010의 경우 full install 버전 찾기가 하늘에 별따기입니다.


■ 표- Visual Studio wine hg 호환성

VersionDescriptionLatest RatingLatest Wine version testedTest resultsComments
2010 (10.0)On April 12, 2010, Microsoft released Visual Studio 2010, codenamed Dev10, and .NET Framework 4.Garbage1.7.44100
2010 (10.0) Express EditionThe free version of Microsoft Visual Studio 2010.Gold1.8.2113
2012 (11.0)This is the commercially released version of Visual Studio 2012 Professional. It uses the .NET framework version 4.5Garbage1.9.240
2012 (11.0) Express EditionThe free version of Microsoft Visual Studio 2012.Garbage1.6.221
2013 (12.0) Express EditionYou can use the tools in Visual Studio Express 2013 for Windows toGarbage1.7.4010
2015 (14.0) Community EditionVisual Studio Community is a free, fully-featured, and extensible IDE for creating modern applications for Windows, Android, and iOS, as well as web applications and cloud services.Garbage1.9.1952




반응형

+ Recent posts