can't compile the source code v1.19.04.00

Started by njfever, February 05, 2012, 07:54:20

Previous topic - Next topic

njfever

i downloaded the source code from sourceforge by svn, it takes some mistakes When I compiled,as follows:

/*line 25*/#include <aeffect.h>         // VST

1>d:\proj\modplug\tags\1.19.04.00\soundlib\sndfile.h(25): fatal error C1083: 无法打开包括文件(can't open include file):"aeffect.h": No such file or directory

missing files?how I should solve it?
sys:win7+vs2010

thanks

Rakib

^^

Relabsoluness

Or if you don't want to get the SDK(meaning that the build won't have VST nor ASIO support), simply uncomment the following lines from file 'StdAfx.h':
//#define NO_ASIO
//#define NO_VST

njfever

 :)
i've compiled the code by simply uncomment.
i love the keygen music.
u r so great.thanks a lot.
能说中文就好了 ^_^

njfever

but i've modified the following:
/*******************************/
// Callback function for reading text
void Convert_AMS_Text_Chars(char &c)
//----------------------------------
{
   switch((unsigned char)c)
   {
   case 0x00:
   case 0x81: c = ' '; break;
   case 0x14: c = '?; break;
   case 0x19: c = '?; break;
   case 0x04: c = '?; break;
   case 0x0E: c = '?; break;
   case 0x06: c = '?; break;
   case 0x0F: c = '?; break;
/*****************************/
to:
/**************************/
// Callback function for reading text
void Convert_AMS_Text_Chars(char &c)
//----------------------------------
{
   switch((unsigned char)c)
   {
   case 0x00:
   case 0x81: c = ' '; break;
   case 0x14: c = ' '; break;
   case 0x19: c = ' '; break;
   case 0x04: c = ' '; break;
   case 0x0E: c = ' '; break;
   case 0x06: c = ' '; break;
   case 0x0F: c = ' '; break;
/**************************/
because:

1>  Load_ams.cpp
1>d:\proj\modplug\tags\1.19.04.00\soundlib\load_ams.cpp(61): error C2001: 常量中有换行符(There are line breaks in the constant)
1>d:\proj\modplug\tags\1.19.04.00\soundlib\load_ams.cpp(61): error C2015: 常量中的字符太多(Too many characters in constant)
1>d:\proj\modplug\tags\1.19.04.00\soundlib\load_ams.cpp(62): error C2143: 语法错误 : 缺少";"(在"case"的前面)(Syntax error: missing ';' (in front of the case "))
...


What better way?

i'll sleep...祝大家元宵节快乐~

Saga Musix

For some reason, your version of Visual Studio seems to interpret the character sequences you have "fixed" as UTF-8 characters or something similar. All OpenMPT code is based on the ANSI / Windows-1252 charset.
» No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.