Need Help Creating A Purelibrary With GCC

Everything else that doesn't fall into one of the other PB categories.
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Need Help Creating A Purelibrary With GCC

Post by GedB »

I'm trying to create a purelibrary using GCC, but the LibraryMaker tool is giving me an error. I am using the GCC provided with Dec-CPP - versions. gcc version 3.2 (mingw special 20020817-1).

I have compied Test.desc and Test.c into a new directory and compiled to an .obj with the following batch file:
Del Test.obj Test
..\..\..\..\Dev-Cpp\bin\gcc.exe -c test.c -o test.obj
..\..\LibraryMaker.exe LccWin32\Test_With_gcc\Test.Desc /TO LccWin32\Test_With_gcc\
This creates the file Test.

I then move the Test file to purebasic\PureLibraries\UserLibraries and start jaPBe.

Now jaPBe recognises the new command StringMultiply as a type, but when I try to compile I get the error:
StringMultiply() is not a function, an array, or a linked list.
Am I doing anything wrong. Is it possible to create purelibraries with gcc?
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It seems ok to me. Is it possible to see the .desc ?
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

Fred,

I've already found the error in my desc.

Thanks for the help. All is now working.

Sorry for wasting any time.

If I'd realised that PureLibraries were so easy I would have started playing with them long ago :)
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

i bet it was a case sensitive problem :)
SPAMINATOR NR.1
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

:oops:
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

Rings wrote:i bet it was a case sensitive problem :)
GedB wrote: :oops:
I think you hit the nail right on the head.. :lol:

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
Post Reply