Thu Oct 9 16:15:00 GMT 2008
On Thu, Oct 09, 2008 at 04:56:11PM +0100, John Emmas wrote:
>On Thu, Oct 09, 2008 at 04:15:51PM +0100, Dave Korn wrote:
>>John Emmas wrote on 09 October 2008 15:43:
>>> Create an empty CPP source file and simply add the following line:-
>>> #include <fstream>
>>> Now try to compile the file. In my case I get around 50 errors, the first
>>> of which is:-
>>> \usr\include\pthread.h: 77: error: `pthread_attr_t' was not declared in
>>> this scope
>>> Now change the file's extension to ".c" and re-compile. This gives
>>> another host of errors, but different errors from the previous ones..!
>> Use "gcc" to compile C files and "g++" to compile C++ files.
>>> If you can't reproduce this, then the most likely cause is that
>>... you forgot to show us the compiler command-line you're using.
>>/tmp $ cat f.cpp
>>int main (int argc, const char **argv)
>> return 0;
>>/tmp $ g++ f.cpp -o f
>>/tmp $ echo $?
>Sorry, I realised almost as soon as I'd posted. Here's what gets sent
>to g++ (I've split all the elements onto different line just to improve
>legibility). Is this enough Dave?
> g++.exe -Wall -g
> -c F:/test/libs/vamp-sdk/vamp-sdk/hostext/test.cpp
> -o obj/Debug/vamp-sdk/hostext/test.o
>If that's not what you wanted, I'll do what you suggested, although I
>don't really understand all the $ and echo stuff (vauguely remember it
>from my DOS days). Are they commands that I need to type in?
"DOS days"? Cygwin is intended to emulate a UNIX environment.
$? is the exit status of a process. If it is zero it means the process
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin