Hi Adrian! I've read that OpenModelica 1.4.5 supports strings for external functions. Today I tried the same example I sent you a few months back, but it still fails with the same error.
Do you have some working code where you send and receive a string to an external function? Thanks in advance! On Fri, Dec 12, 2008 at 23:17, Alex Schenkman <[email protected]> wrote: > Hi Adrian, > > Here comes an example that works for Reals but not for Strings. > The C function appends the actual time to a file out.txt > > Thanks! > > > > On Wed, Dec 10, 2008 at 04:24, Adrian Pop <[email protected]> wrote: > >> >> Hi, >> >> This should work, so it might be a but. >> I'll have a look at what's wrong later >> next week as now I'm in the middle of >> something quite important. >> >> It would be good if you could send me >> a small example that fails. >> >> Cheers, >> Adrian Pop/ >> >> >> >> Alex Schenkman wrote: >> >>> Hi List: >>> >>> I wonder if it is possible to receive a string from an external C >>> function. >>> I managed to send a string to an external function, but when I try to >>> return a string from my C function, allocated with malloc, I get the >>> following error: >>> >>> Internal error generate_global_data failed >>> >>> Thanks in advance! >>> >> >> >
