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