можно ли заставить cl.exe скомпилировать файл main.cc как будто это с++ файл?
он ругается
Command line warning D4024 : unrecognized source file type 'main.cc', object file assumed
вот неприятный фрагмент из мсдн ;(
CL accepts files with names that follow FAT, HPFS, or NTFS naming conventions. Any filename can include a full or partial path. A full path includes a drive name and one or more directory names. CL accepts filenames separated either by backslashes (\) or forward slashes (/). A partial path omits the drive name, which CL assumes to be the current drive. If you don't specify a path, CL assumes the file is in the current directory.
The filename extension determines how files are processed. C and C++ files, which have the extension .c, .cxx, or .cpp, are compiled. Other files, including .obj files, libraries (.lib and module-definition (.def) files, are passed to the linker without being processed.
bleyman
Я потратил целых две минуты, чтобы нопейсать cl /?, и найти нужные опции, удовлетворив таким образом своё любопыццтво. Но тебе их не скажу, ха ха ха. RTFM.
Maurog
можно ли заставить cl.exe скомпилировать файл main.cc как будто это с++ файл?он ругается
Command line warning D4024 : unrecognized source file type 'main.cc', object file assumed
вот неприятный фрагмент из мсдн ;(
CL accepts files with names that follow FAT, HPFS, or NTFS naming conventions. Any filename can include a full or partial path. A full path includes a drive name and one or more directory names. CL accepts filenames separated either by backslashes (\) or forward slashes (/). A partial path omits the drive name, which CL assumes to be the current drive. If you don't specify a path, CL assumes the file is in the current directory.
The filename extension determines how files are processed. C and C++ files, which have the extension .c, .cxx, or .cpp, are compiled. Other files, including .obj files, libraries (.lib and module-definition (.def) files, are passed to the linker without being processed.