Hi. When i was compiling on my debian i had added #include <stdlib.h> to Compiler/runtime/ptolemyio.cpp and c_runtime/simulation_init.cpp, and a #include <string.h> to Compiler/runtime/ptolemyio.cpp that should work.
2008/10/21 Christoph Höger <[EMAIL PROTECTED]>: > Hi, > > I will check debian tomorrow and figure out, what's wrong. I assume that > malloc without including stdlib should work on _no_ distro ;) > > If it works on other distros, I would assume a problem with the > buildsystem could be the cause. > > Am Dienstag, den 21.10.2008, 22:20 +0200 schrieb Adrian Pop: >> Hi, >> >> On Ubuntu & Debian is not needed and it works fine. >> Seems like Fedora 9 is a bit different. >> >> Just add the missing includes until it compiles, then do an >> $ svn diff > fedora.patch >> and send the patch to me as more includes doesn't hurt >> if it makes the system compilable on more distros. >> >> Cheers, >> Adrian Pop/ >> >> Christoph Höger wrote: >> > Hello, >> > >> > I've tried to build OpenModelica (both 1.4.4 and r3705) on fedora 9 >> > using gcc-4.3.0 >> > It simply does not work. I get compiler errors complaining about non >> > declared symbols. E.g. malloc in simulation_init.cpp:127 >> > >> > Any reason why stdlib is not included although malloc() is used? >> > >> > And how shall I build OpenModelica? >> > >> > regards >> > >> > Christoph > -- Jorge Eduardo Cardona [EMAIL PROTECTED] jorgeecardona.blogspot.com ------------------------------------------------ Linux registered user #391186 Registered machine #291871 ------------------------------------------------
