Bonjour à tous
Voila j'ai un petit problème avec la librairie Ogg.
Je travaille sous Ubuntu avec CodeBlocks. J'ai 2 projets dans mon workspace : un qui représente mon moteur de jeu (une libraire statique), et un qui représente une démo montrant l'utilisation du moteur (un exécutable). J'utilise OpenAL, Ogg-Vorbis pour charger mes sons Ogg. Tout compile niquel pour la libraire statique (le moteur de jeu), pas de problème de linkage, par contre quand je compile la démo voici ce que me sort le compilateur
J'ai linker les 2 projets de cette façon :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105 ||=== Demo, Debug ===| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_get_next_page':| (.text+0x546)||undefined reference to `ogg_sync_pageseek'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_get_next_page':| (.text+0x599)||undefined reference to `ogg_sync_buffer'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_get_next_page':| (.text+0x5cc)||undefined reference to `ogg_sync_wrote'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_decode_clear':| (.text+0x693)||undefined reference to `vorbis_dsp_clear'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_decode_clear':| (.text+0x6a1)||undefined reference to `vorbis_block_clear'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x6e4)||undefined reference to `vorbis_info_init'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x6ef)||undefined reference to `vorbis_comment_init'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x704)||undefined reference to `ogg_page_bos'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x714)||undefined reference to `ogg_page_serialno'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x720)||undefined reference to `ogg_stream_reset_serialno'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x72c)||undefined reference to `ogg_stream_pagein'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x73b)||undefined reference to `ogg_stream_packetout'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x74a)||undefined reference to `vorbis_synthesis_idheader'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x7b4)||undefined reference to `vorbis_info_clear'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x7bf)||undefined reference to `vorbis_comment_clear'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x814)||undefined reference to `vorbis_synthesis_headerin'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x856)||undefined reference to `vorbis_synthesis_headerin'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x87d)||undefined reference to `ogg_stream_packetout'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x8ba)||undefined reference to `ogg_page_serialno'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x8c6)||undefined reference to `ogg_page_bos'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_headers':| (.text+0x8f5)||undefined reference to `ogg_stream_pagein'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_make_decode_ready':| (.text+0x980)||undefined reference to `vorbis_synthesis_init'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_make_decode_ready':| (.text+0x996)||undefined reference to `vorbis_block_init'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xa62)||undefined reference to `ogg_page_serialno'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xa6e)||undefined reference to `ogg_page_bos'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xab5)||undefined reference to `ogg_page_serialno'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xb01)||undefined reference to `ogg_stream_reset_serialno'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xb26)||undefined reference to `ogg_stream_pagein'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xb48)||undefined reference to `ogg_stream_packetout'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xb74)||undefined reference to `vorbis_synthesis'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xbc7)||undefined reference to `vorbis_synthesis_pcmout'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xbe6)||undefined reference to `vorbis_synthesis_blockin'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xbff)||undefined reference to `vorbis_synthesis_pcmout'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xc74)||undefined reference to `vorbis_synthesis_pcmout'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xca7)||undefined reference to `vorbis_info_clear'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xcb2)||undefined reference to `vorbis_comment_clear'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_fetch_and_process_packet':| (.text+0xd51)||undefined reference to `vorbis_synthesis_pcmout'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_ov_initprime':| (.text+0xe34)||undefined reference to `vorbis_synthesis_pcmout'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_read_float':| (.text+0xe9d)||undefined reference to `vorbis_synthesis_pcmout'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_read_float':| (.text+0xec6)||undefined reference to `vorbis_synthesis_read'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_read':| (.text+0xf95)||undefined reference to `vorbis_synthesis_pcmout'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_read':| (.text+0x10e4)||undefined reference to `vorbis_synthesis_read'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_ov_getlap':| (.text+0x1406)||undefined reference to `vorbis_synthesis_pcmout'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_ov_getlap':| (.text+0x147a)||undefined reference to `vorbis_synthesis_read'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_ov_getlap':| (.text+0x14c6)||undefined reference to `vorbis_synthesis_lapout'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `_seek_helper':| (.text+0x16bf)||undefined reference to `ogg_sync_reset'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_raw_seek':| (.text+0x18a4)||undefined reference to `ogg_stream_reset_serialno'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_raw_seek':| (.text+0x18b2)||undefined reference to `vorbis_synthesis_restart'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_raw_seek':| (.text+0x18da)||undefined reference to `ogg_stream_init'| /usr/lib/libvorbisfile.a(vorbisfile.o)||In function `ov_raw_seek':| (.text+0x18e2)||undefined reference to `ogg_stream_reset'| ||More errors follow but not being shown.| ||Edit the max errors limit in compiler options...| ||=== Build finished: 50 errors, 0 warnings ===|
avec les librairies
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 Project/Build Options/Linker settings/Link libraries
Je vois vraiment pas d'où vient l'erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 /usr/lib/libopenal.a /usr/lib/libogg.a /usr/lib/libvorbis.a /usr/lib/libvorbisfile.a
Partager