Page 1 of 1

Need Help Creating A Purelibrary With GCC

Posted: Tue Jun 08, 2004 8:58 am
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?

Posted: Tue Jun 08, 2004 9:11 am
by Fred
It seems ok to me. Is it possible to see the .desc ?

Posted: Tue Jun 08, 2004 9:27 am
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 :)

Posted: Tue Jun 08, 2004 11:21 am
by Rings
i bet it was a case sensitive problem :)

Posted: Tue Jun 08, 2004 11:57 am
by GedB
:oops:

Posted: Tue Jun 08, 2004 1:14 pm
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: