Pelles C forum

C language => Expert questions => Topic started by: EdPellesC99 on February 14, 2011, 04:59:06 PM

Title: gif2avi.zip Source Code dwnld fr smorgasbordet -- .... Building Problems
Post by: EdPellesC99 on February 14, 2011, 04:59:06 PM

  Hi,

  Though I do not have problems building the other source code packages, I have errors galore.
Has any one else been able to simply build the project?

  I would like to explore this work, as I could use it!

  Thanks in advance.
Title: Re: gif2avi.zip Source Code dwnld fr smorgasbordet -- .... Building Problems
Post by: TimoVJL on February 14, 2011, 05:57:36 PM
Try to insert this to gif2avi.h
Code: [Select]
typedef unsigned long _fsize_t;
Code: [Select]
#ifndef UNREFERENCED_PARAMETER
#define UNREFERENCED_PARAMETER(P) (P)
#endif
Title: Re: gif2avi.zip Source Code dwnld fr smorgasbordet -- .... Building Problems
Post by: EdPellesC99 on February 14, 2011, 08:12:40 PM
   Thanks Timo,

  One error:

gif2avi.h(56): error #1050: Redefinition of macro 'UNREFERENCED_PARAMETER'.

But I am afraid I do not understand how to use this work.

It produced three .obj files, no executables.

Up until now (in my personal crude work) I have simply included extra .c files in my main.c file and .... donot compile .obj files and link them ..... I have just not gotten into that yet.

Anyway .... what do I do now?   ???

How do I use this work to convert a .gif to an .avi?

thanks much
Title: Re: gif2avi.zip Source Code dwnld fr smorgasbordet -- .... Building Problems
Post by: EdPellesC99 on February 17, 2011, 06:01:08 AM
    Ok......,   :'(

   I now inserted:
#ifndef UNREFERENCED_PARAMETER
#define UNREFERENCED_PARAMETER(P) (P)
#endif

  So Here are my results :

Building main.OBJ.
Building avi.OBJ.
Building gif.OBJ.
C:\SGV1\C _PelleOrinius' Goodies\gif2avi\gif.c(240): warning #2030: '=' used in a conditional expression.
C:\SGV1\C _PelleOrinius' Goodies\gif2avi\gif.c(245): warning #2030: '=' used in a conditional expression.
C:\SGV1\C _PelleOrinius' Goodies\gif2avi\gif.c(266): warning #2030: '=' used in a conditional expression.
Building utils.OBJ.
Building GIF2AVI.EXE.

POLINK: error: Unresolved external symbol '_ICSendMessage@16'.
POLINK: fatal error: 1 unresolved external(s).
*** Error code: 1 ***
Done.

I think I can get rid of the warnings, but any ideas on the "POLINK: error: Unresolved external symbol '_ICSendMessage@16'."

Is there a library missing in the source code ppj file? I searched in the help contents but no topics found.

Thanks, Ed

Title: Re: gif2avi.zip Source Code dwnld fr smorgasbordet -- .... Building Problems
Post by: TimoVJL on February 17, 2011, 06:46:03 AM
Insert vfw32.lib to project.
Title: Re: gif2avi.zip Source Code dwnld fr smorgasbordet -- .... Building Problems
Post by: EdPellesC99 on February 17, 2011, 04:55:46 PM
Wow !

   Project Built in a split second. Had my first .gif converted within one minute.

   Thanks a lot Timo.  ;D

  Now I can go play with Pelle's cool toy !