lee_timmy Posted October 31, 2012 Report Share Posted October 31, 2012 Hi, all I tried to implement the time domain Gaussian random noise in page 93 of AMS user manual. I made this as an sub-module of the BASK modulation/demodulation system. However, the compilation gives me errors: Gnoise.o: In function `gauss_rand(double)': Gnoise.cpp:(.text+0x60): multiple definition of `gauss_rand(double)' BASK.o:BASK.cpp:(.text+0x60): first defined here /tmp/ccRJX6KO.o: In function `gauss_rand(double)': test_BASK.cpp:(.text+0x60): multiple definition of `gauss_rand(double)' BASK.o:BASK.cpp:(.text+0x60): first defined here collect2: ld returned 1 exit status make: *** [test_BASK] Error 1 It says the the C++ function gauss_rand(double) is defined in multiple places. But I'm sure that's Gnoise.cpp is the only file where I use and define this function. How can SystemC/AMS call a C++ function in a module without getting this error? Thank you! Tim Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.