Search found 12 matches

by hectic128
Mon Sep 22, 2008 9:18 am
Forum: PSP Development
Topic: pthreads
Replies: 24
Views: 14969

TyRaNiD wrote:I would assume that the header does not extern C the function definitions so when compiled g++ is trying to find the mangled form which doesn't exist.
Yup. Fix committed to SVN trunk.

Not sure how I missed that one...
by hectic128
Wed Jul 02, 2008 11:28 am
Forum: PSP Development
Topic: undefined reference to `__ctype_b_loc'
Replies: 4
Views: 1966

OK, I figured out the problem. When building the library, it was grabbing the ctype.h file from /usr/include rather than the PSP toolchain one...
by hectic128
Sat Jun 28, 2008 11:41 pm
Forum: PSP Development
Topic: undefined reference to `__ctype_b_loc'
Replies: 4
Views: 1966

Looks like you didn't put the agar lib into the LIBS= line in the makefile.... Nope, it's there. psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -g -I.. -fno-strict-aliasing -I../.. -I/usr/local/pspdev/psp/include/agar -I/usr/local/pspdev/psp/include/SDL -I/usr/local/pspdev/psp/includ...
by hectic128
Sat Jun 28, 2008 12:07 pm
Forum: PSP Development
Topic: undefined reference to `__ctype_b_loc'
Replies: 4
Views: 1966

undefined reference to `__ctype_b_loc'

I'm trying to compile a program that uses an external library (agar) and am getting some strange errors that I can't figure out. They all look something like: keymap_ascii.c:(.text+0x300): undefined reference to `__ctype_b_loc' OR keymap_ascii.c:(.text+0x410): undefined reference to '__ctype_toupper...
by hectic128
Sun May 11, 2008 8:19 am
Forum: PSP Development
Topic: pthreads
Replies: 24
Views: 14969

Re: pthreads

Nice work. Tests run great on psp FAT (after some very slight changes to make printf work and compile to pbp), though a few take a while ;). Very nice test set too! I like the abstraction layer you use to support multiple platforms... and that its inherited pthreads-win32's exception handling. I wa...
by hectic128
Sun May 11, 2008 8:05 am
Forum: PSP Development
Topic: pthreads
Replies: 24
Views: 14969

Re: pthreads

Would it not be advantageous to add the contentionscope parameter to pte_osThreadCreate (since stacksize and priority are already here) and noop that for the osals that do not support it? We can then use this to set pspAttr. You're exactly right, and I like your solution. This is one of those areas...
by hectic128
Sun May 11, 2008 7:55 am
Forum: PSP Development
Topic: pthreads
Replies: 24
Views: 14969

Re: pthreads

Let's I know if you want some particular message or note in nd documentation for the user, in way that I can fully respect your license. Bye Filippo That's cool! The only thing I would ask is to also put a link to the sourceforge site. If you find any problems or make any improvements I'd appreciat...
by hectic128
Sat Apr 05, 2008 2:26 pm
Forum: PSP Development
Topic: pthreads
Replies: 24
Views: 14969

pthreads

I've finished up an implementation of the pthreads API for the PSP. The implementation is pretty complete, the only thing missing are things that don't really apply to the PSP platform. See the link below...

http://sourceforge.net/projects/pthreads-emb/
by hectic128
Mon Dec 17, 2007 12:54 pm
Forum: PSP Development
Topic: Thread creation problem
Replies: 10
Views: 3290

I verified that threads were actually getting created. When it originally stopped at 30 threads, I thought the same thing, that I was running into some kind of limit (possibly because I wasn't deleting threads). However, the point at which it stops is somewhat random, and often goes above 30. I have...
by hectic128
Sun Dec 16, 2007 2:44 pm
Forum: PSP Development
Topic: Thread creation problem
Replies: 10
Views: 3290

Unfortunately this didn't help.

Good thought though...
by hectic128
Tue Dec 04, 2007 2:32 pm
Forum: PSP Development
Topic: Thread creation problem
Replies: 10
Views: 3290

Thread creation problem

I've been having some problems creating threads. It seems that sometimes when a thread is created, the OS will immediately kill it (before it even gets to the thread's entry point as far as I can tell.), I can reproduce the problem with some pretty straightforward test code, which is included below....
by hectic128
Sat Nov 17, 2007 4:44 am
Forum: PSP Development
Topic: pthread library
Replies: 3
Views: 3296

Did anything ever come of this?

I'm in need of a (relatively complete) pthread implementation for PSP. Just wondered if anyone else is working on this (if not, I'll probably start down the path of implementing my own).

Thanks!