Hi all,<br><br>Thank you for your inputs. I'm working on libtheora and created the project as lib on vc++6. But i'm getting errors like these. I appreciate all your help<br><br>regards,<br>Sahana<br><br>Compiling...<br>
psytune.c<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(46) : error C2078: too many initializers<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(55) : error C2061: syntax error : identifier '_vp_part0'<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(55) : error C2059: syntax error : ';'<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(55) : error C2059: syntax error : '['<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(63) : error C2061: syntax error : identifier '_vp_couple0'<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(63) : error C2059: syntax error : ';'<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(63) : error C2059: syntax error : '['<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(70) : error C2065: 'ATH_Bark_dB_lineaggressive' : undeclared identifier<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(70) : error C2099: initializer is not a constant<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(72) : warning C4244: 'initializing' : conversion from 'const float ' to 'int ', possible loss of data<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(83) : error C2078: too many initializers<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(157) : error C2065: '_vp_part0' : undeclared identifier<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(157) : error C2099: initializer is not a constant<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(158) : error C2065: '_vp_couple0' : undeclared identifier<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(158) : error C2099: initializer is not a constant<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(181) : error C2078: too many initializers<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(188) : warning C4047: 'initializing' : 'struct vorbis_info_mode *' differs in levels of indirection from 'const int '<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(190) : warning C4133: 'initializing' : incompatible types - from 'struct vorbis_info_mapping0 *' to 'struct vorbis_info_mode *'<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(192) : warning C4047: 'initializing' : 'struct vorbis_info_mode *' differs in levels of indirection from 'const int '<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(192) : warning C4133: 'initializing' : incompatible types - from 'struct vorbis_info_floor1 *' to 'struct vorbis_info_mode *'<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(193) : warning C4047: 'initializing' : 'struct vorbis_info_mode *' differs in levels of indirection from 'const int '<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(195) : warning C4133: 'initializing' : incompatible types - from 'struct vorbis_info_psy *' to 'struct vorbis_info_mode *'<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(196) : warning C4133: 'initializing' : incompatible types - from 'struct vorbis_info_psy_global *' to 'struct vorbis_info_mode *'<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(286) : warning C4013: '_vorbis_window_create' undefined; assuming extern returning int<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(286) : warning C4047: '=' : 'float *' differs in levels of indirection from 'int '<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(291) : warning C4020: 'function through pointer' : too many actual parameters<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(321) : warning C4244: 'initializing' : conversion from 'double ' to 'float ', possible loss of data<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(345) : warning C4244: 'initializing' : conversion from 'double ' to 'float ', possible loss of data<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(368) : warning C4013: '_vp_compute_mask' undefined; assuming extern returning int<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(389) : error C2039: 'forward' : is not a member of 'vorbis_func_floor'<br> c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\backends.h(30) : see declaration of 'vorbis_func_floor'<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(399) : warning C4133: 'function' : incompatible types - from 'struct vorbis_look_psy_global *' to 'float *'<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(400) : warning C4133: 'function' : incompatible types - from 'float *' to 'int *'<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(402) : warning C4047: 'function' : 'int ' differs in levels of indirection from 'float *'<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(402) : warning C4024: '_vp_remove_floor' : different types for formal and actual parameter 5<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(403) : warning C4020: '_vp_remove_floor' : too many actual parameters<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(415) : warning C4013: '_vp_partition_prequant' undefined; assuming extern returning int<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(425) : warning C4047: 'function' : 'int ' differs in levels of indirection from 'struct vorbis_look_psy *'<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(425) : warning C4024: '_vp_couple' : different types for formal and actual parameter 1<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(426) : warning C4133: 'function' : incompatible types - from 'struct vorbis_info_mapping0 *' to 'struct vorbis_info_psy_global *'<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(427) : warning C4047: 'function' : 'struct vorbis_look_psy *' differs in levels of indirection from 'float *[2]'<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(427) : warning C4024: '_vp_couple' : different types for formal and actual parameter 3<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(428) : warning C4133: 'function' : incompatible types - from 'int [2]' to 'struct vorbis_info_mapping0 *'<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(428) : error C2198: '_vp_couple' : too few actual parameters<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\psytune.c(489) : warning C4244: 'initializing' : conversion from 'double ' to 'int ', possible loss of data<br>tone.c<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\tone.c(18) : warning C4013: 'alloca' undefined; assuming extern returning int<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\tone.c(18) : warning C4047: '=' : 'double *' differs in levels of indirection from 'int '<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\tone.c(19) : warning C4047: '=' : 'double *' differs in levels of indirection from 'int '<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\tone.c(40) : error C2065: 'M_PI' : undeclared identifier<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\tone.c(40) : warning C4244: '+=' : conversion from 'double ' to 'float ', possible loss of data<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\tone.c(41) : warning C4013: 'rint' undefined; assuming extern returning int<br>c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\tone.c(43) : warning C4244: '=' : conversion from 'const float ' to 'int ', possible loss of data<br>
c:\users\vista business\desktop\sahana\libvorbis-1.2.3\lib\tone.c(44) : warning C4244: '=' : conversion from 'const float ' to 'int ', possible loss of data<br>Error executing cl.exe.<br><br>libvorbis.lib - 18 error(s), 34 warning(s)<br>
<br><br><div class="gmail_quote">On Sun, May 23, 2010 at 10:00 PM, Sergey Kurdakov <span dir="ltr"><<a href="mailto:sergey.forum@gmail.com">sergey.forum@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Sahana,<br><br>unfortunately I do not have vc6 for many years<br><br>I could suggest two things - either search on the web how to switch project type in vc6, or recreate a project as lib/dll project and add files as you already did.<br>
<br>Regards<br><font color="#888888">Sergey</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, May 24, 2010 at 6:14 AM, SAHANA DEVARAJU <span dir="ltr"><<a href="mailto:sahanadevaraju@gmail.com" target="_blank">sahanadevaraju@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Sergey,<br><br>I did go through the project settings but i'm not able to find the settings that you are refering to. Can you tell me exactly what to set?<br><br>regards,<br><font color="#888888">sahana</font><div>
<div>
</div><div><br><br><div class="gmail_quote">On Sun, May 23, 2010 at 8:46 PM, Sergey Kurdakov <span dir="ltr"><<a href="mailto:sergey.forum@gmail.com" target="_blank">sergey.forum@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Sahana,<div><br><br>>Are you referring to the MFC(Microsoft foundation classes)???? <br>
<br></div>no I try to say, that in case you compile a library you should set a project settings so that you compile library and not dll or exe . the type of app is set in project settings.<br>
<br>Regards<br><font color="#888888">Sergey</font><div><div></div><div><br><br><div class="gmail_quote">On Mon, May 24, 2010 at 5:33 AM, SAHANA DEVARAJU <span dir="ltr"><<a href="mailto:sahanadevaraju@gmail.com" target="_blank">sahanadevaraju@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Sergey,<br><br>Are you referring to the MFC(Microsoft foundation classes)???? I am new to vc++.<br>Thank you for the inputs.<br><br>regards,<br><font color="#888888">sahana</font><div><div></div><div><br><br>
<div class="gmail_quote">On Sun, May 23, 2010 at 8:10 PM, Sergey Kurdakov <span dir="ltr"><<a href="mailto:sergey.forum@gmail.com" target="_blank">sergey.forum@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Sahana,<div><br><br>>unresolved external symbol _wWinMain@16<br><br></div>is an indication that you compile not a library, but an exe.<br>
Set in settings ( somewhere in VC6 properties of the project find General /Configuration type and set library)<br>
<br>Regards<br>Sergey<br><br><br><div class="gmail_quote">On Mon, May 24, 2010 at 4:57 AM, SAHANA DEVARAJU <span dir="ltr"><></span> wrote:<br></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>