cl.exe need to compile myfile.c.lnk
From: Msg_in_a_bottle (Msg_in_a_bottle_at_discussions.microsoft.com)
Date: 12/20/04
- Previous message: Stephanie Conroy [MSFT]: "Re: Can Outlook.Application be used to control open message windows?"
- Next in thread: Severian: "Re: cl.exe need to compile myfile.c.lnk"
- Reply: Severian: "Re: cl.exe need to compile myfile.c.lnk"
- Messages sorted by: [ date ] [ thread ]
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
- Previous message: Stephanie Conroy [MSFT]: "Re: Can Outlook.Application be used to control open message windows?"
- Next in thread: Severian: "Re: cl.exe need to compile myfile.c.lnk"
- Reply: Severian: "Re: cl.exe need to compile myfile.c.lnk"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|