gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem...


From: Ricardo
Subject: Re: Problem...
Date: Mon, 10 Nov 2003 13:06:57 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01

Hello,

   I again tried to compile it using MS VC++ 6.0, but I'm geting the following results:

 

   --------------------Configuration: libgnokii - Win32 Debug--------------------
Compiling...
gsm-encoding.c
C:\testes\gnokii\gnokii src\common\gsm-encoding.c(570) : fatal error C1189: #error :  "iconv missing"
Error executing cl.exe.

gnokii.exe - 1 error(s), 0 warning(s)


Tanks.
  Ricardo Freitas

BORBELY Zoltan wrote:
Hi,

On Mon, Nov 03, 2003 at 01:50:36PM +0000, Ricardo wrote:
  
   I have a question,:
   I'm VB programmer and I've been using the file 'gnokiiapi.dll', 
contained on the folder "patches\vb", on version 0.33 of gnokii.
   Now, I'd like to move to version 0.5.5, but I can't find this dll. I 
tried to compile it using MS VC++ 6.0, but I'm geting the following results:

--------------------Configuration: libgnokii - Win32 
Debug--------------------
Compiling...
gsm-encoding.c
C:\testes\gnokii\gnokii src\common\gsm-encoding.c(570) : fatal error 
C1189: #error :  "iconv missing"
gsm-filetypes.c
C:\testes\gnokii\gnokii src\common\gsm-filetypes.c(282) : warning C4013: 
'pnok_ringtone_from_raw' undefined; assuming extern returning int
C:\testes\gnokii\gnokii src\common\gsm-filetypes.c(519) : error C2143: 
syntax error : missing ';' before 'type'
C:\testes\gnokii\gnokii src\common\gsm-filetypes.c(522) : error C2275: 
'gn_error' : illegal use of this type as an _expression_
       ../../include\gnokii/error.h(79) : see declaration of 'gn_error'
C:\testes\gnokii\gnokii src\common\gsm-filetypes.c(522) : error C2146: 
syntax error : missing ';' before identifier 'err'
C:\testes\gnokii\gnokii src\common\gsm-filetypes.c(522) : error C2065: 
'err' : undeclared identifier
C:\testes\gnokii\gnokii src\common\gsm-filetypes.c(524) : warning C4013: 
'pnok_ringtone_to_raw' undefined; assuming extern returning int
C:\testes\gnokii\gnokii src\common\gsm-filetypes.c(524) : error C2065: 
'buf' : undeclared identifier
C:\testes\gnokii\gnokii src\common\gsm-filetypes.c(526) : warning C4022: 
'fwrite' : pointer mismatch for actual parameter 1
Generating Code...
Error executing cl.exe.

gnokiid.dll - 6 error(s), 3 warning(s)

I'm not familiar with this compiler or the C++ language it self. Can 
someone help me solving this problem, or better yet send me the last 
version for this dll.
    

Ok, this was my fault. I replaced some gccism and committed the fix
into the cvs. If it still doesn't build please let us know.

Bye,
Bozo
  

diff -u -r --exclude=CVS gnokii-cvs/common/gsm-filetypes.c gnokii-devel/common/gsm-filetypes.c --- gnokii-cvs/common/gsm-filetypes.c 2003-10-24 14:51:57.000000000 +0200 +++ gnokii-devel/common/gsm-filetypes.c 2003-11-03 22:53:09.000000000 +0100 @@ -39,6 +39,7 @@ #include "gnokii-internal.h" #include "gnokii.h" #include "gsm-filetypes.h" +#include "phones/nokia.h" #ifdef HAVE_X11_XPM_H # include <X11/xpm.h> @@ -514,10 +515,11 @@ gn_error file_nokraw_save(FILE *file, gn_ringtone *ringtone, int dct4) { - int n = 4096; - char buf[n]; + int n; + char buf[4096]; gn_error err; + n = sizeof(buf); if ((err = pnok_ringtone_to_raw(buf, &n, ringtone, dct4)) != GN_ERR_NONE) return err; if (fwrite(buf, n, 1, file) != 1) return GN_ERR_UNKNOWN;

_______________________________________________ gnokii-users mailing list address@hidden http://mail.nongnu.org/mailman/listinfo/gnokii-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]