cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

iulian_arg
Journeyman III

problem compiling c++ brook+ generated code

Hi,

sorry for posting such a noob question.

I can't compile c++ code generated by Brook+ compiler.

When I tried to compile "Sum" example,it passes brook level without error, but on the c++ level I get 41 errors like this one:

error LNK2001: unresolved external symbol "public: virtual void __thiscall StreamImpl::read(void const *)" (?read@StreamImpl@@UAEXPBX@Z)

It seems that the problem is with brook.lib file, but i can't figure it out what I'm doing wrong. I added the path to the lib file in

Project Properties>Configuration Properties>Linker>Input>Additional Dependencies.

I'm sure that the path is ok, but I still get those errors.

Are there any known issues with VS2008?

platform: vista 64, VS2008, catalyst 8.12, sdk 1.3, hd3850.

the precompiled (exe) examples located in installation folder, work fine.

 

LE: the same set of errors i get with and also without brook.lib dependency added; so it seems the c++ compiler doesn't care about my dependency.

Tags (2)
0 Likes
Reply
2 Replies
Ceq
Journeyman III

problem compiling c++ brook+ generated code

Looks like you're trying to link a 32 bit executable with 64 bit libraries.
If you're using a 64 bit OS the current SDK can only target 64 bit architecture.
If you have installed VS2008 with 64 bit option just change Win32 to x64 build
mode and set linker in "Target Machine" to x64.
0 Likes
Reply
iulian_arg
Journeyman III

problem compiling c++ brook+ generated code

Thanks Ceq, I've soved the problem. Indeed, I was targeting Win32 instead of X64.

X64 C++ compiler wasn't installed so I runed VS setup and installed it. After that I set X64 as targeted platform and I was able to compile and run.

Thanks once again.

0 Likes
Reply