CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    53

    Force Developer Studio 5.0 to compile *.C files in the same way as *.cpp

    Is it possible to set Developer Studio to compile *.C-files in the same way as *.cpp-files?

    I have a lot of C++ code made on UNIX using *.C. The code isn't UNIX dependent and I would like to use the code on Visual C++ as well. But Developer Studio only accepts *.cpp-files.

    Can somebody help me?


  2. #2
    Guest

    Re: Force Developer Studio 5.0 to compile *.C files in the same way as *.cpp

    Add /TP to the compiler command line. This makes the compiler treat all files as C++ source code.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured