[OT] C kerdes mar megint- remelem utolso

VFX info at vfx.hu
Thu Nov 17 23:24:44 CET 2005


Hali!

Fuzesi Arnold wrote:
> 
> Csinalsz egy header file-t, amiben benne van a prototipusa a meghivando
> fuggvenynek, es beinkludalod a C++ forrasba.
> 
> Azaz:
> 
> vfx.c:
> #include <vfx.h>
> void blabla()
> {
> kód
> }
> 
> vfx.h
> #ifndef __VFX_H__
> #define __VFX_H__
> 
> void blabla();
> 
> #endif
> 
> vfx.cpp
> #include <vfx.h>
> main()
> {
>     rutyutyu...
>     blabla();
>     rutyutyu...
> }


Erre ezt mondja:

 error: declaration is incompatible with
          "void blabla()" (declared at line 4 of ".\musicout.h")


Probaltam igy is:

> #ifndef __VFX_H__
> #define __VFX_H__
> 
> void blabla(argc, argv);
> 
> #endif


megy igy is:

> void blabla(int argc, char argv);


De mindig a fenti hibauzenetet kapom.



A hivando resz igy kezdodik:

blabla(argc, argv)
int argc;
char **argv;
{
....





UDV. VFX.
http://www.vfx.hu




More information about the Elektro mailing list