For Programmers: Free Programming Magazines  


Home > Archive > VC STL > March 2005 > Unrecocnized file type









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Unrecocnized file type
Hovhannes Asatryan

2005-03-04, 8:58 am

Hi guys.

In VC 6.0 I have the DLL project which contains only cc files.
When I try to complie it the compiler returns

Command line warning D4024 : unrecognized source file type 'D:\aa.cc',
object file assumed
Command line warning D4027 : source file 'D:\aa.cc' ignored.

I have added the cc extension in registry (32-bit C/C++ Compiler for 80x86).

Any idea?


Carl Daniel [VC++ MVP]

2005-03-04, 4:03 pm

Hovhannes Asatryan wrote:
> Hi guys.
>
> In VC 6.0 I have the DLL project which contains only cc files.
> When I try to complie it the compiler returns
>
> Command line warning D4024 : unrecognized source file type 'D:\aa.cc',
> object file assumed
> Command line warning D4027 : source file 'D:\aa.cc' ignored.
>
> I have added the cc extension in registry (32-bit C/C++ Compiler for
> 80x86).
> Any idea?


You need to compile with /TP (assuming it's C++; /TC if it's C) - the
compiler itself doesn't look at anything in the registry when deciding what
language a file contains - it simply looks at the extension.

-cd


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com