Re: Calling a C Function From New Era
Posted in 1996
Generally I use: # hello.4gl function hello() BEGIN_C // call c function hello_c(); // eventually cout << "Hello" END_C end function # eof hello.4gl I don't You will have to be a bit more specific with your problem: - Does the program link? if it doesn't, maybe it is the name mangling of the cpp compiler. try: extern _cplusplus hello(); or something like this (it's sometime since i have mixed c and c++ programs) generally I look in .h files for the correct syntax; - If it link's, does it do anything when you execute it ? - etc... ccs. -- Carlos Costa e Silva ccs@minimal.pt Basheer <basheer@cris.com> wrote in article <501jss$626@cssun.mathcs.emory.edu>... : I need your help If anyone of U have tried calling a C function From Newera : : My newera windows has one button that calls a C function: hello.c (hello.cpp) : : #include <iostream.h> : void hello() : { : cout << "Hello"; : } : : Compiles OK BUT DOESN'T RUN : : Thanks in Advance : :