PDA

View Full Version : HELP



T-man
08-22-2012, 01:03 PM
So I am basically trying to make my fist HelloWorld program work on my Ubuntu OS. So I downloaded the SDK from http://developer.amd.com/sdks/AMDAPPSDK ... .aspx#four (http://developer.amd.com/sdks/AMDAPPSDK/documentation/Pages/default.aspx#four) and I made the first helloworld program but I get these errors when compiling like

gcc -o hello_world -I /opt/AMDAPP/include/ -L /opt/AMDAPP/lib/x86/ hello.cpp -IOpenCL


hello.cpp:29: error: ‘cl’ has not been declared
hello.cpp:29: error: ‘cl’ has not been declared
hello.cpp:29: error: ‘platformList’ was not declared in this scope
hello.cpp:30: error: ‘cl’ has not been declared
hello.cpp:40: error: ‘cl’ has not been declared
hello.cpp:40: error: expected ‘;’ before ‘context’
hello.cpp:51: error: ‘cl’ has not been declared
hello.cpp:51: error: expected ‘;’ before ‘outCL’
hello.cpp:60: error: ‘cl’ has not been declared
hello.cpp:60: error: ‘cl’ has not been declared
hello.cpp:60: error: ‘devices’ was not declared in this scope
hello.cpp:61: error: ‘context’ was not declared in this scope
hello.cpp:61: error: expected primary-expression before ‘)’ token
hello.cpp:74: error: ‘cl’ has not been declared
hello.cpp:74: error: expected ‘;’ before ‘source’
hello.cpp:80: error: ‘cl’ has not been declared
hello.cpp:80: error: expected ‘;’ before ‘program’
hello.cpp:81: error: ‘program’ was not declared in this scope
hello.cpp:85: error: ‘cl’ has not been declared
hello.cpp:85: error: expected ‘;’ before ‘kernel’
hello.cpp:88: error: ‘kernel’ was not declared in this scope
hello.cpp:88: error: ‘outCL’ was not declared in this scope
hello.cpp:92: error: ‘cl’ has not been declared
hello.cpp:92: error: expected ‘;’ before ‘queue’
hello.cpp:96: error: ‘cl’ has not been declared
hello.cpp:96: error: expected ‘;’ before ‘event’
hello.cpp:97: error: ‘queue’ was not declared in this scope
hello.cpp:99: error: ‘cl’ has not been declared
hello.cpp:100: error: ‘cl’ has not been declared
hello.cpp:101: error: ‘cl’ has not been declared


P.S. I also did export LD_LIBRARY_PATH=/opt/AMDAPP/lib/x86_64/

Thank you for your help!

EyNuel
08-24-2012, 09:52 AM
Can you provide your code so that people can take a look?
Otherwise it's gonna be difficult to help you out...