On Friday 16 February 2007 07:29, Piotr.Sz wrote: > Hi does anyone know how to change ncc behavior? While using external > functions from library file in my source progM.nc file the output app.c > from ncc has external functions name changed. Ncc adds prefix: progM$ in > front of the external functions. When this happens gcc can't find the > needed functions in the lib because their names are changed by the ncc. > Does anyone knows how to make ncc don't change the names of extern > functions? Thanks for help in advance.
Generally speaking, you have to add the directory containing the header declaring the externally visible library symbols (functions, etc) to PFLAGS and add the library itself (as either -l<name> or /path/to/libname.a as appropriate) to LDFLAGS within your Makefile. TinyOS does this internally, for example, to allow access to functions from the math library (-lm) ... at least on the arch I use. Hope this helps, Steve _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help