[MPlayer-users] Problem in Compiling MPlayer
Torinthiel
torinthiel at megapolis.pl
Thu Aug 19 20:12:54 CEST 2004
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__?
You could, of course, pass -D__linux__ to compiler, but that's the WRONG
way. The compiler should set it. At least mine gcc does - when I wrote a
test program
int main(void)
{
#ifdef __linux__
printf("foo");
#endif
printf("bar\n");
}
and compiled it without any options, just pure gcc test.c
and run the resulting binary it printed foobar.
Maybe your's set __LINUX__, or LINUX or __linux - you could check with
test like one above.
Torinthiel
--
Waclaw "Torinthiel" Schiller GG#: 542916, 3073512
torinthiel(at)megapolis(dot)pl
gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8 7346 2B6E 39F2 B069 01F1
"No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20040819/029e635e/attachment.pgp>
More information about the MPlayer-users
mailing list