[MPlayer-users] Problem in Compiling MPlayer
Martin Simmons
vyslnqaaxytp at spammotel.com
Mon Aug 23 00:23:17 CEST 2004
>>>>> On Thu, 19 Aug 2004 20:12:54 +0200, Torinthiel <torinthiel at megapolis.pl> said:
Torinthiel> On Thu, Aug 19, 2004 at 10:30:49AM -0700, Helmi Kurniawan wrote:
>>
>> Hi,
>>
>> Yes, I have checked out asm/ldt.h and it define the
>> structure for modify_ldt_ldt_s and also there is no
>> message saying that missing ldt.h
>>
>> For your information, my Kernel version is
>> linux-2.4.27. How do I define __linux__?
Torinthiel> You could, of course, pass -D__linux__ to compiler, but that's the WRONG
Torinthiel> way. The compiler should set it. At least mine gcc does - when I wrote a
Torinthiel> test program
Torinthiel> int main(void)
Torinthiel> {
Torinthiel> #ifdef __linux__
Torinthiel> printf("foo");
Torinthiel> #endif
Torinthiel> printf("bar\n");
Torinthiel> }
Torinthiel> and compiled it without any options, just pure gcc test.c
Torinthiel> and run the resulting binary it printed foobar.
Torinthiel> Maybe your's set __LINUX__, or LINUX or __linux - you could check with
Torinthiel> test like one above.
Compiling with gcc -v will show what is being defined.
__Martin
More information about the MPlayer-users
mailing list