Re: How to import an existing folder into Visual Studio



Well, you can write a tool to do this for you. The project file
is simply a text file after all. If you are being extra careful,
you should be able to manage that. We do edit our vcproj files
by hand occasionally...

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================

"frust" <sgiitnewid@xxxxxxxxx> wrote in message
news:d67f6052-e212-44c1-8b3f-83da69f99dd4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I dont think this can be done manually.
There are thousands of files and 10s of folders.
I am planning to use the cl compiler of Visual Studio and then find
its debugger to debug it.


On Jan 4, 11:43 am, frust <sgiitne...@xxxxxxxxx> wrote:
Reading all this info from a makefile would be a great feature in any
tool I guess.
Isn' t it ?
That way, people can easily port their existing projects into VC,
though offcourse, some
work will go into fixing non-ANSI stuff but yet, manual addition to
automatic would be great.
Also, if reading from makefile, then VC should also be able to set
compiler options for each file etc.
Aneways, sounds like a lot of work ahead !

On Jan 3, 11:50 pm, "Alexander Nickolov" <agnicko...@xxxxxxxx> wrote:

You don't need to create new folders, just add all your existing
files to a single VC project. Unlike make, VC projects can gather
files from a multitude of folders. You will have to add configuration
information and list all of your folders relatively to the project for
it to find the headers, though that's not exactly unlike Unix. It's the
Additional Include Directories setting under the compiler settings
in the General tab. BTW, as you've already guessed no doubt, this
is manual work. Again - just like in Unix...

A word of caution - unless you've religiously folowed ANSI, don't
expect your code to magically compile the first time. You'll likely
have some porting to do...

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnicko...@xxxxxxxx
MVP VC FAQ:http://vcfaq.mvps.org
=====================================

"frust" <sgiitne...@xxxxxxxxx> wrote in message

news:fdc9f231-e142-41b2-b7a9-8dfda4fff9d4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi,

I am new to Visual Studio.
We have some C++ source code along with some Lex/yacc files.
Till now, we used to build on Linux.

The source code is arranged in several folders and there is a
makefile
for each folder.
The toplevel makefile calls make on each folder and then builds the
final executable.

I need to transfer this C++ source code onto Visual Studio to build
it
for windows and
to use the Visual Studio's debugger.
(I tried building on CL compiler using the makefile but could not
make
a debug build after trying
all the debug options like /Zi /Z7 etc.)

Can somebody tell me how I can import this whole directory structure
into the Visual Studio ?
I do not want to manually create the several folders and then add
files to it.

Ideally, It would be so good if Visual Studio could take
in the Makefile and then create the directory structure itself.
Can this be done ?



.



Relevant Pages

  • Re: How to import an existing folder into Visual Studio
    ... There are thousands of files and 10s of folders. ... I am planning to use the cl compiler of Visual Studio and then find ... its debugger to debug it. ... The toplevel makefile calls make on each folder and then builds the ...
    (microsoft.public.vc.language)
  • Re: How to import an existing folder into Visual Studio
    ... Reading all this info from a makefile would be a great feature in any ... files from a multitude of folders. ... Additional Include Directories setting under the compiler settings ...
    (microsoft.public.vc.language)
  • Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
    ... Microsoft MVP, MCSD ... Or it doens't make any differences in debugging when I ... "Alexander Nickolov" wrote: ... instead create my own folders for file grouping... ...
    (microsoft.public.win32.programmer.ole)
  • Newbie Q: spca5xx webcam driver installation problem
    ... with the included default makefile. ... Building SPCA5XX driver for 2.5/2.6 kernel. ... # Setup the tools ... # Setup compiler warnings ...
    (comp.os.linux.setup)
  • Re: DDK build result different from VS result
    ... > driver project into a VS.NET 2003 makefile project, ... > the DDK compiler, which seem safer and more supproted for kernel development. ... > the compiler flags from the VC project into this new makefile project. ...
    (microsoft.public.development.device.drivers)