Hey, to conveniently analyse the data gathered by Iperf I tried to modify the "ReportDefault.c" of the Iperf 2.0.4 version by including the self-written function "int WlanLogger(unsigned int)" which logs the rate with which the data was send. To do so I included the respective Wlan_Logger.cpp file which contains the logger-tool and the Wlan_Logger.h with the declaration of the function as well as the inclusion of other header-files.
When making the project with the modified makefile, the compiler generates all object files without any complaint (including the Wlan_Logger.o), but the linker prints that there's an "undefined reference to WlanLogger" in the "ReportDefault.c" . Now I tried several things and came over the fact, that even when defining the function in the main.cpp the same error occurs. Only by defining the function either in the ReportDefault.c itself or in the Wlan_Logger.h which is included by the ReportDefault.c the Linker will accept the reference to the function. Unfortunately none of the options described is a possible solution to my problem as my source includes c++ - elements which can't be run by the ReportDefault.c file. Googeling only brought me to the idea, that the printed error requests a library to be added, but as the object file is already properly generated before, this - in my eyes - can't be the problem. I'd be more than happy if any of you can help me with this matter as I already spent several hours on how to get rid of this darn error. Thanks a lot, S.Clauss ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Iperf-users mailing list Iperf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iperf-users