Click here to Skip to main content
12,758,782 members (37,885 online)
Rate this:
Please Sign up or sign in to vote.
See more: C++ Windows Visual-Studio Linux , +
I'm on a project where the code is currently being developed with QT Creator, using the QT framework. We've run into problem after problem, and we've effectively stopped development until we resolve the problem (one way or the other).

One approach is to force VS2010 to work for us (this is the preferred solution by a very wide margin).

We have to be able to compile using GCC, but my question is this - will the VS2010 debugger work on a GCC application?

Is there a better option that DOESN'T include QT Creator?
Posted 30-Mar-12 5:37am
Code-o-mat 3-Apr-12 5:54am
Just a small addition to bazis' solution, you might try to run a virtual machine -if you have the hardware for it- using e.g. Virtual PC by Microsoft or VMWare player (both are free) to run the linux environment for compiling. Or even the other way around, run Windows and VS on the virtual machine under linux.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I've never used VS for developing Linux apps... everything in there is geared towards Windows. I'm pretty sure the debugger wouldn't work with a gcc compiled source (since it wouldn't necessarily understand all the build products/ debug information).

You may however, be able to use something like this:[^]

Here's the same question asked before (stack overflow):[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You can use VisualGDB to build and debug Linux apps from Visual Studio, but you will need to decide whether you want to build them locally or remotely.

1. If you choose local build, you'll need to build a cross-compiler toolchain, that can be quite hard to do.
2. If you choose remote build, GCC and GDB will be run on the Linux machine over TCP/IP, but every compilation will last several seconds longer, as transferring the modified source files from Windows machine to Linux machine will take a bit of time.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 3 Apr 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100