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

inline C and calling in and out



Hi, newbie question :/

I'm trying to use the nifty C interface. I'm using 0_154 on Win32
(vcgoo154a.zip). When I try to run the following program (which I would
expect to print "weeee\nwaaaa\n") I get a C compiler error, saying:
\tmp\exp-6252-1.c(35) : error C2065: 'YgooSuserYbacktogooV' : undeclared
identifier

---
(use goo)
(use goo/x)

(df backtogoo ()
    (post "waaaa\n"))

#{
  void doStuff(void)
  {
    printf("weeee\n");
    $(backtogoo);
  }
}

(df main ()
    #{ doStuff(); }
    )

(main)
---

Do I need to "forward declare" the backtogoo goo function to C somehow?

I also found http://www.ai.mit.edu/~jrb/goo/wiki/index.php/OpenglGoox, which
has same problem with the $(display) call in void display(void) {...} on my
build. Perhaps a Win32-only problem, or something that was fixed in 155?

Thanks for any suggestions/clarifications,
scott