Thread: help with compiling

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    3

    help with compiling

    whenever i try to compile code in Microsoft Visual C++ it says:

    "Cannot compile the file 'C:\Documents and Settings\Owner\Desktop\Text2.txt'; no compile tool is associated with the file extension"

  2. #2
    Wen Resu
    Join Date
    May 2003
    Posts
    219
    save you files as .cpp
    you have em as .txt

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    126
    My guess is that you'll need to save your source code file with a .cpp extension instead of .txt

  4. #4
    Registered User
    Join Date
    May 2003
    Posts
    3

    omg

    omg im so stupid..

    you see im at a friends house showing him the ropes, and i totally forgot to save them as .cpp...sorry for bothering you guys

    -thx

  5. #5
    Wen Resu
    Join Date
    May 2003
    Posts
    219
    heh been there my friend
    happy coding

  6. #6
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    I can proudly say I've never been there .
    I've been to other dark shameful places.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  7. #7
    Wen Resu
    Join Date
    May 2003
    Posts
    219
    haha once took me 20 minutes to realize i had it saved as .vpp

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie Compiling Problem
    By Deronius in forum C++ Programming
    Replies: 3
    Last Post: 06-15-2008, 11:23 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. Problem Compiling
    By Flakster in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2006, 01:09 AM
  4. compiling and executing issue with lcc win32
    By GanglyLamb in forum C Programming
    Replies: 10
    Last Post: 12-22-2004, 02:24 PM
  5. Compiling syntax
    By Jez_Master in forum C++ Programming
    Replies: 3
    Last Post: 04-01-2002, 09:46 PM