forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

spe-mfcio.h

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Development
View previous topic :: View next topic  
Author Message
orion



Joined: 26 May 2008
Posts: 3

PostPosted: Mon May 26, 2008 9:13 am    Post subject: spe-mfcio.h Reply with quote

Hellow all.

I am new with linux and programming so I was searching on-line and came across this, http://www.ibm.com/developerworks/power/library/pa-linuxps3-1/, and after writing it I went to compile it using spu-gcc. I get the following error:

[root@localhost Simple Program]# spu-gcc spe_distance.c -o spe_distance
spe_distance.c: In function 'main':
spe_distance.c:30: error: 'tag' undeclared (first use in this function)
spe_distance.c:30: error: (Each undeclared identifier is reported only once
spe_distance.c:30: error: for each function it appears in.)

I don't even know what that means but I am thinking it is not able to find the header file. I did some searching on it and that example program uses spu.mfcio.h. I couldn't find it anywhere in the file system. Also, I did install the Cell SDK 3.0 so any help would greatly be appreciated.

Thanks,
Jeremy
Back to top
View user's profile Send private message
carlosn



Joined: 10 Mar 2005
Posts: 38
Location: Orlando, Florida, US

PostPosted: Mon May 26, 2008 11:59 am    Post subject: Reply with quote

The example you mention uses libspe and the CELL sdk 3.0 uses libspe2. You will have to upgrade the code.

Read this article, it will help you understand.

http://www.ibm.com/developerworks/library/pa-libspe2/

Carlos
Back to top
View user's profile Send private message Visit poster's website
orion



Joined: 26 May 2008
Posts: 3

PostPosted: Tue May 27, 2008 3:13 am    Post subject: Reply with quote

carlosn wrote:
The example you mention uses libspe and the CELL sdk 3.0 uses libspe2. You will have to upgrade the code.

Read this article, it will help you understand.

http://www.ibm.com/developerworks/library/pa-libspe2/

Carlos


Just so I am understanding correctly, the spu_mfcio.h is a header file and it is contained in libspe, correct? Since I have the libspe2 installed it isn't finding that particuler header, correct? If so, that example program is unabled to be compiled and I would totally have to re-write it with the libspe2 in mind?? I am unable to do that since I have no clue what I am doing so I will look at those example given in the link you provided and try them.

Thank you, and let me know if my assumptions above are correct.

Also, I want to learn programming, specifically for Cell based systems. Where do I start??? From my reserch you can use any language pretty much but it has to conform to the cell guidlines. I absolutley know nothing about programming and have been reading the MIT lectures on the PS3's Cell but 90% of that stuff I am reading, I have no clue what it is. What are the prerequisets and so and so forth???

Thanks,
Jeremy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group