| Author |
Message |
|
TiCL
BBAdult
Joined: Mon May 15, 2006 4:58 am Posts: 36
|
 Compiling bbTaskSwitch
I would like make some modifications in bbTaskSwitch, however the file bbapi-c.h is missing. Could anyone help me?
|
| Tue May 16, 2006 4:56 pm |
|
 |
|
Google
Sponsored Links
|
|
 |
|
noccy
BBDinosaur
Joined: Fri Jan 27, 2006 4:16 am Posts: 794 Location: Karlstad, Sweden
|
 Re: Compiling bbTaskSwitch
TiCL wrote: I would like make some modifications in bbTaskSwitch, however the file bbapi-c.h is missing. Could anyone help me?
Any solution yet? Feels like i'm chasing the goddamn grinch around here or smth 
_________________ Don't forget to check the BlackBox FAQs.
Jabber: noccy@jabber.se | Web: www.noccy.com | Blog: Minimal Security
|
| Wed Jun 20, 2007 3:42 am |
|
 |
|
tresni
Site Admin
Joined: Sun Dec 05, 2004 8:59 pm Posts: 1316 Location: Boise, Idaho
|
bbapi-c.h is included in the bblean source iirc. It's is the same bbapi.h with a couple definitions for types that are not defined in C
_________________ -- Brian ♠ ♥ ♣
|
| Wed Jun 20, 2007 5:25 pm |
|
 |
|
noccy
BBDinosaur
Joined: Fri Jan 27, 2006 4:16 am Posts: 794 Location: Karlstad, Sweden
|
tresni wrote: bbapi-c.h is included in the bblean source iirc. It's is the same bbapi.h with a couple definitions for types that are not defined in C
Hm, I can't find it anywhere in my source directory, and bbTaskSwitch won't compile without it :/
_________________ Don't forget to check the BlackBox FAQs.
Jabber: noccy@jabber.se | Web: www.noccy.com | Blog: Minimal Security
|
| Wed Jun 20, 2007 7:32 pm |
|
 |
|
tresni
Site Admin
Joined: Sun Dec 05, 2004 8:59 pm Posts: 1316 Location: Boise, Idaho
|
I thought I had seen it, but I am mistaken. I sent an email off to kana, who is the only plugin author I know of that used it. Maybe we'll see something, maybe not. But he's a cool guy and has always been forthcoming in the past.
_________________ -- Brian ♠ ♥ ♣
|
| Wed Jun 20, 2007 11:04 pm |
|
 |
|
noccy
BBDinosaur
Joined: Fri Jan 27, 2006 4:16 am Posts: 794 Location: Karlstad, Sweden
|
I've gotten this far (in converting it to cpp from c):
Code: $ make -f makefile-gcc gcc -Os -Wall -Os -o BBTaskSwitch.dll -shared \ -Wl,--no-whole-archive ../../blackbox/libBlackbox.a BBTaskSwitch.o cpp_adaptor.o misc.o BBTaskSwitch.o:BBTaskSwitch.cpp:(.text+0x41c): undefined reference to `GetBBWnd' BBTaskSwitch.o:BBTaskSwitch.cpp:(.text+0xc7c): undefined reference to `GetBBWnd' BBTaskSwitch.o:BBTaskSwitch.cpp:(.text+0xcb7): undefined reference to `GetBBWnd' BBTaskSwitch.o:BBTaskSwitch.cpp:(.text+0xcdd): undefined reference to `GetBBWnd' cpp_adaptor.o:cpp_adaptor.cpp:(.text+0x11): undefined reference to `CreateStyleFont' cpp_adaptor.o:cpp_adaptor.cpp:(.text+0x27): undefined reference to `MakeStyleGradient' collect2: ld returned 1 exit status make: *** [BBTaskSwitch.dll] Error 1
I'm trying every way i can to include libBlackbox.a but for some reason it won't work 
_________________ Don't forget to check the BlackBox FAQs.
Jabber: noccy@jabber.se | Web: www.noccy.com | Blog: Minimal Security
|
| Mon Jun 25, 2007 7:02 pm |
|
 |
|
Carsomyr
BBDinosaur
Joined: Wed Dec 13, 2006 7:33 pm Posts: 263 Location: Pretoria, South Africa
|
If I remember correctly you should be using
Code: -l../../blackbox/libBlackbox.a to link in the library.
The first character after the dash is a lowercase L if you're wondering, as I'm having trouble figuring it out looking at it just like that
|
| Tue Jun 26, 2007 7:51 pm |
|
 |
|
noccy
BBDinosaur
Joined: Fri Jan 27, 2006 4:16 am Posts: 794 Location: Karlstad, Sweden
|
[quote="Carsomyr"]If I remember correctly you should be using
Code: -l../../blackbox/libBlackbox.a to link in the library. Apparently, moving the libs to the end of the command line did the trick. Now it's just unwilling to locate the GDI32 exports for ts.dll :X Code: $ make -f makefile-gcc gcc -Os -Wall -s -lgdi32 -o ts.dll -shared \ -Wl,--out-implib=ts.lib \ ts.o ../../blackbox/libBlackbox.a Creating library file: ts.lib ts.o:ts.c:(.text+0x322): undefined reference to `CreateFontA@56' ts.o:ts.c:(.text+0x362): undefined reference to `DeleteObject@4' ts.o:ts.c:(.text+0xed5): undefined reference to `SetTextColor@8' ts.o:ts.c:(.text+0xedd): undefined reference to `SetBkMode@8' ts.o:ts.c:(.text+0xf15): undefined reference to `SetTextColor@8' ts.o:ts.c:(.text+0xf61): undefined reference to `SetTextColor@8' collect2: ld returned 1 exit status make: *** [ts.dll] Error 1
_________________ Don't forget to check the BlackBox FAQs.
Jabber: noccy@jabber.se | Web: www.noccy.com | Blog: Minimal Security
|
| Tue Jun 26, 2007 10:46 pm |
|
 |
|
Carsomyr
BBDinosaur
Joined: Wed Dec 13, 2006 7:33 pm Posts: 263 Location: Pretoria, South Africa
|
Try moving the GDI library to the end of the command line as well. The linker is sensitive to the order and starts linking from the last argument, IIRC.
|
| Wed Jun 27, 2007 9:46 am |
|
 |
|
noccy
BBDinosaur
Joined: Fri Jan 27, 2006 4:16 am Posts: 794 Location: Karlstad, Sweden
|
Carsomyr wrote: Try moving the GDI library to the end of the command line as well. The linker is sensitive to the order and starts linking from the last argument, IIRC.
That did the trick  It compiles, just gotta take it for a spin to see if it works as intended. Thanks!
Cheers,
Chris
_________________ Don't forget to check the BlackBox FAQs.
Jabber: noccy@jabber.se | Web: www.noccy.com | Blog: Minimal Security
|
| Thu Jun 28, 2007 12:06 am |
|
 |
|
Google
Sponsored Links
|
|
 |
|