[Implemented] Documentation for the SDK

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
swhite
Enthusiast
Enthusiast
Posts: 790
Joined: Thu May 21, 2009 6:56 pm

[Implemented] Documentation for the SDK

Post by swhite »

Hi

Unless I missed it I would like to suggest some documentation be included for the SDK. I have not seen any instructions on how to create Pure Libraries, import headers etc. but have discovered there are some tools related to these items. I also discovered by accident that the compiler must check these libraries for function names etc. because I had a name conflict that I could not understand until I discovered it was caused by a user library I downloaded and put in the UserLibrary folder as instructed by the library author. So as a new user I would appreciate some information about these features and examples of how they should be used.

Thanks,
Simon
Simon White
dCipher Computing
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Documentation for the SDK

Post by netmaestro »

Unless I missed it I would like to suggest some documentation be included for the SDK. I have not seen any instructions on how to create Pure Libraries
If you look in the LccWin32 folder under SDK there are several examples of c programs and how to compile them into user libraries. The SDK is there for instruction and tools to create user libraries from programs created in other languages such as c or asm. If you are looking to create a userlibrary from Purebasic code Tailbite is the tool made for that.
BERESHEIT
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: Documentation for the SDK

Post by PMV »

If that would be that easy ...

If i want to compile it like it says in the Readme.txt ... i got the error, that some files are missing.
I figured out, that the 3 header-files are stored in a wrong directory and put them in the sub-directory where they was bevor 10 PB-Versions. :lol: ... but now this header-files are including two missing files and i doesn't know where they could be:
- FunctionPrototypes.h
- SystemBase/SystemBase.h
Additional lcc-win32 gets many syntax errors and so on, when i compile the MessageBox.c example.

Do i something wrong? :?

MFG PMV
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Documentation for the SDK

Post by jack »

same problem here, namely the two missing files: FunctionPrototypes.h and SystemBase/SystemBase.h
any advice ?
xorc1zt
Enthusiast
Enthusiast
Posts: 276
Joined: Sat Jul 09, 2011 7:57 am

Re: Documentation for the SDK

Post by xorc1zt »

the sdk is outdated and need a revamp.

here is a full example done with the windows sdk compiler: http://www.purebasic.fr/english/viewtop ... 14&t=49325
the code is also compilable with visual studio 2010 but the project files are not provided.
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Documentation for the SDK

Post by jack »

thanks xorc1zt for the link.
I found a PellesC project on an old drive from about 2008 and it compiles the Simple Library OK, it even builds the Unicode functions, but am unable to reproduce a Project file from the IDE that will automatically build Unicode functions, but it's not that hard to edit the project file in Notepad and add the Unicode part.
Post Reply