cl.exe need to compile myfile.c.lnk

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Msg_in_a_bottle (Msg_in_a_bottle_at_discussions.microsoft.com)
Date: 12/20/04

  • Next message: Severian: "Re: cl.exe need to compile myfile.c.lnk"
    Date: Mon, 20 Dec 2004 15:57:05 -0800
    
    

    Hello,
         Most of my source code is organized into seperate directories, but I
    like to keep shortcuts ( .lnk files) to each file in one directory. For
    example,

    C:\myproject\main.c.lnk --> C:\code\src\main.c
    C:\myproject\header.h.lnk --> C:\code\incl\header.h

    I want to build everything from one directory (in this case C:\myproject)
    from the command line using cl.exe, but I get the following errors

    > cl main.c
    cl: fatal error C1083: Cannot open source file: 'main.c': No such file or
    directory

    or when I try

    > cl main.c.lnk
    cl: Command line warning D4024: unrecognized source file type 'main.c.lnk',
    object file assumed
    main.c.lnk: fatal error LNK1136: invalid or corrupt file

    I doubt this is impossible through the Windows command prompt, but so far I
    have not been able to get it done. I have seen this accomplished on linux
    using other compilers, and both linux and windows represent shortcuts as .lnk
    files. Perhaps there's a command line options I'm missing ??

    Sincerely,
    ~Marc


  • Next message: Severian: "Re: cl.exe need to compile myfile.c.lnk"

    Relevant Pages

    • Re: How do I pass parameters in a WSH file?
      ... > Everytime I ever start using lnk files I abandon them. ... I'd also like to see shortcuts to shortcuts allowed, ... > supporting them is a significant oversight - unless there's some ... I generally avoid having this issue by using command line arguments very ...
      (microsoft.public.scripting.wsh)
    • Re: Fenster versenken, wie?
      ... Shortcuts for taking Pictures of the Screen ... Go to Computer Command + Shift + c ... Close folder Command + Up Arrow ... Turn on full keyboard access Ctrl + F1 ...
      (de.comp.sys.mac.misc)
    • Re: Overtaxed on moving day
      ... >> And moving a stash six dungeon levels is not far at all. ... >> you know the move '_' command? ... use the shortcuts to go to the nearest ... Because the help command is for help, ...
      (rec.games.roguelike.nethack)
    • Re: Citrix Pen Test,
      ... Citrix effectively presents the desktop as a web page. ... shortcuts are really just images on that web page. ... get a command prompt too. ... > to the remote server through Citrix and run the application. ...
      (Pen-Test)
    • Re: Quick Print in Word 2007
      ... multiple keystroke shortcuts; what it does is list the same command twice, each with one of the shortcuts. ... At a quick glance, though, I don't see some keystroke shortcuts that I know exist, such as the en and em dashes. ... then under "Macros in" select "Word commands", then select "ListCommands" for macro name, and choose "All Word commands" in the next dialogue, you will get a new document with a table of all the commands showing built-in keyboard shortcuts. ... I suspect once I did the pasting, the code no longer appeared in the document and hence didn't show up when I printed the key assignments. ...
      (microsoft.public.word.newusers)