enum cudaError __cdecl b40c::util::B40CPerror

45 views
Skip to first unread message

dev

unread,
Jan 1, 2012, 2:26:53 PM1/1/12
to B40C
Hello,

I have multiple cuda files in my project.
In one file I included

#include <b40c/consecutive_reduction/enactor.cuh>
#include <b40c/util/ping_pong_storage.cuh>

In the other file I included:

#include <b40c/radix_sort/enactor.cuh>

I got these errors:

2>sphsimlib.lib(UniformGrid.cu.obj) : error LNK2005: "enum cudaError
__cdecl b40c::util::B40CPerror(enum cudaError,char const *,char const
*,int,bool)" (?B40CPerror@util@b40c@@YA?AW4cudaError@@W43@PBD1H_N@Z)
already defined in sphsimlib.lib(SimSimpleSPH.cu.obj)
2>sphsimlib.lib(UniformGrid.cu.obj) : error LNK2005: "enum cudaError
__cdecl b40c::util::B40CPerror(char const *,char const *,int,bool)" (?
B40CPerror@util@b40c@@YA?AW4cudaError@@PBD0H_N@Z) already defined in
sphsimlib.lib(SimSimpleSPH.cu.obj)
2>sphsimlib.lib(UniformGrid.cu.obj) : error LNK2005: "enum cudaError
__cdecl b40c::util::B40CPerror(enum cudaError,bool)" (?
B40CPerror@util@b40c@@YA?AW4cudaError@@W43@_N@Z) already defined in
sphsimlib.lib(SimSimpleSPH.cu.obj)
2>sphsimlib.lib(UniformGrid.cu.obj) : error LNK2005: "enum cudaError
__cdecl b40c::util::B40CPerror(bool)" (?B40CPerror@util@b40c@@YA?
AW4cudaError@@_N@Z) already defined in
sphsimlib.lib(SimSimpleSPH.cu.obj)

Any help is much appreciated.
Thanks for advance.

zeno...@gmail.com

unread,
Jan 25, 2013, 5:47:23 AM1/25/13
to b4...@googlegroups.com
hi,Have you solved your problems??how???I got the same errors.......

Qingru Meng

unread,
Jun 9, 2013, 12:06:10 AM6/9/13
to b4...@googlegroups.com
Though this project has been so long ago, I am involved in this also .much appreciate if you know how to get out of this .

wei zhao

unread,
Dec 29, 2014, 8:27:27 PM12/29/14
to b4...@googlegroups.com
I know this thread is long time ago, but I hit the same issue yesterday, have you figure it out ?? thanks.

wei zhao

unread,
Dec 29, 2014, 8:56:08 PM12/29/14
to b4...@googlegroups.com
I put b40c header files in different namespace, compile passed, no idea why. weird. 
Reply all
Reply to author
Forward
0 new messages