1 | Configure run on Tue Jun 24 11:38:04 CEST 2008
|
---|
2 |
|
---|
3 | #include <stdlib.h>
|
---|
4 | #include <signal.h>
|
---|
5 | int main(int argc, char **argv)
|
---|
6 | {
|
---|
7 | unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
|
---|
8 | signal(SIGBUS, exit);
|
---|
9 | signal(SIGABRT, exit);
|
---|
10 | signal(SIGSEGV, exit);
|
---|
11 | if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) {
|
---|
12 | return 1;
|
---|
13 | }
|
---|
14 | return 0;
|
---|
15 | }
|
---|
16 |
|
---|
17 | g++ .cpp -o
|
---|
18 | ld: warning in .cpp, file is not of required architecture
|
---|
19 | ld: could not find entry point "start" (perhaps missing crt1.o)
|
---|
20 | collect2: ld returned 1 exit status
|
---|
21 |
|
---|
22 |
|
---|
23 | int main(void) { return 0; }
|
---|
24 |
|
---|
25 | g++ .cpp -o -L/opt/local/lib -I/opt/local/include -ansi -W -Wno-unused-parameter -Wconversion -lm
|
---|
26 | ld: warning in .cpp, file is not of required architecture
|
---|
27 | ld: could not find entry point "start" (perhaps missing crt1.o)
|
---|
28 | collect2: ld returned 1 exit status
|
---|
29 |
|
---|
30 |
|
---|
31 | #include <vorbis/codec.h>
|
---|
32 | int main(void) { vorbis_packet_blocksize(0,0); return 0; }
|
---|
33 |
|
---|
34 | g++ .cpp -o -L/opt/local/lib -I/opt/local/include -ansi -W -Wno-unused-parameter -Wconversion -lvorbisfile -lvorbis -logg
|
---|
35 | ld: warning in .cpp, file is not of required architecture
|
---|
36 | ld: could not find entry point "start" (perhaps missing crt1.o)
|
---|
37 | collect2: ld returned 1 exit status
|
---|
38 |
|
---|
39 |
|
---|
40 | #include <tremor/ivorbiscodec.h>
|
---|
41 | int main(void) { vorbis_packet_blocksize(0,0); return 0; }
|
---|
42 |
|
---|
43 | g++ .cpp -o -L/opt/local/lib -I/opt/local/include -ansi -W -Wno-unused-parameter -Wconversion -lvorbisidec
|
---|
44 | ld: library not found for -lvorbisidec
|
---|
45 | collect2: ld returned 1 exit status
|
---|
46 |
|
---|
47 |
|
---|
48 | #include <FLAC/format.h>
|
---|
49 | int main(void) { return FLAC__STREAM_SYNC_LEN >> 30; /* guaranteed to be 0 */ }
|
---|
50 |
|
---|
51 | g++ .cpp -o -L/opt/local/lib -I/opt/local/include -ansi -W -Wno-unused-parameter -Wconversion -lFLAC -logg
|
---|
52 | ld: warning in .cpp, file is not of required architecture
|
---|
53 | ld: could not find entry point "start" (perhaps missing crt1.o)
|
---|
54 | collect2: ld returned 1 exit status
|
---|
55 |
|
---|
56 |
|
---|
57 | #include <mad.h>
|
---|
58 | int main(void) {return 0; }
|
---|
59 |
|
---|
60 | g++ .cpp -o -L/opt/local/lib -I/opt/local/include -ansi -W -Wno-unused-parameter -Wconversion -lmad
|
---|
61 | ld: warning in .cpp, file is not of required architecture
|
---|
62 | ld: could not find entry point "start" (perhaps missing crt1.o)
|
---|
63 | collect2: ld returned 1 exit status
|
---|
64 |
|
---|
65 |
|
---|
66 | #include <alsa/asoundlib.h>
|
---|
67 | int main(void) { return (!(SND_LIB_MAJOR==0 && SND_LIB_MINOR==9)); }
|
---|
68 |
|
---|
69 | g++ .cpp -o -L/opt/local/lib -I/opt/local/include -ansi -W -Wno-unused-parameter -Wconversion -lasound
|
---|
70 | ld: library not found for -lasound
|
---|
71 | collect2: ld returned 1 exit status
|
---|
72 |
|
---|
73 |
|
---|
74 | #include <string.h>
|
---|
75 | #include <zlib.h>
|
---|
76 | int main(void) { return strcmp(ZLIB_VERSION, zlibVersion()); }
|
---|
77 |
|
---|
78 | g++ .cpp -o -L/opt/local/lib -I/opt/local/include -ansi -W -Wno-unused-parameter -Wconversion -lz
|
---|
79 | ld: warning in .cpp, file is not of required architecture
|
---|
80 | ld: could not find entry point "start" (perhaps missing crt1.o)
|
---|
81 | collect2: ld returned 1 exit status
|
---|
82 |
|
---|
83 |
|
---|
84 | typedef signed char int8_t;
|
---|
85 | typedef signed short int16_t;
|
---|
86 | typedef signed int int32_t;
|
---|
87 |
|
---|
88 | typedef unsigned char uint8_t;
|
---|
89 | typedef unsigned short uint16_t;
|
---|
90 | typedef unsigned int uint32_t;
|
---|
91 |
|
---|
92 | #include <mpeg2dec/mpeg2.h>
|
---|
93 | int main(void) {
|
---|
94 | /* mpeg2_state_t first appears in 0.4.0 */
|
---|
95 | mpeg2_state_t state;
|
---|
96 |
|
---|
97 | #ifdef MPEG2_RELEASE
|
---|
98 | if (MPEG2_RELEASE >= MPEG2_VERSION(0, 3, 2))
|
---|
99 | return 0;
|
---|
100 | #endif
|
---|
101 | return 1;
|
---|
102 | }
|
---|
103 |
|
---|
104 | g++ .cpp -o -L/opt/local/lib -I/opt/local/include -ansi -W -Wno-unused-parameter -Wconversion -lmpeg2
|
---|
105 | ld: warning in .cpp, file is not of required architecture
|
---|
106 | ld: could not find entry point "start" (perhaps missing crt1.o)
|
---|
107 | collect2: ld returned 1 exit status
|
---|
108 |
|
---|
109 |
|
---|
110 | #include <fluidsynth.h>
|
---|
111 | int main(void) { return 0; }
|
---|
112 |
|
---|
113 | g++ .cpp -o -L/opt/local/lib -I/opt/local/include -ansi -W -Wno-unused-parameter -Wconversion -lfluidsynth
|
---|
114 | ld: library not found for -lfluidsynth
|
---|
115 | collect2: ld returned 1 exit status
|
---|
116 |
|
---|