Hej
I got this problem while trying to build project in VS2010:
fft_test.obj : error LNK2005: "void __cdecl fft(int,double (*)[2],double (*)[2])" (?fft@@YAXHPAY01N0@Z) already defined [b]1>in fft.obj
1>fft_test.obj : error LNK2005: "void __cdecl fft_rec(int,int,int,double (*)[2],double (*)[2],double (*)[2])" (?fft_rec@@YAXHHHPAY01N00@Z) already defined in fft.obj
1>fft_test.obj : error LNK2005: "void __cdecl ifft(int,double (*)[2],double (*)[2])" (?ifft@@YAXHPAY01N0@Z) already defined in fft.obj
1>c:\users\akhtar\documents\visual studio 2010\Projects\fft_rec_given\Debug\fft_rec_given.exe : fatal error LNK1169: one or more multiply defined symbols found[/b]
and I tried following suggestion given at a forum (in my VS2010):
Solution based on VS2005:
go to project>properties>configuration properties>linker>input
add to "Additional dependency" -> Nafxcwd.lib Libcmtd.lib
add to "ignore specific library" -> Nafxcwd.lib;Libcmtd.lib
order of libraries is important( Nafxcwd.lib;Libcmtd.lib).
But now I got the following error:
1>LINK : fatal error LNK1104: cannot open file 'Nafxcwd.lib Libcmtd.lib'
Please help me what should I do now? Thanks