PDA

View Full Version : Developer Suite and mathlib


newpalmdev314
09-07-2007, 11:23 PM
I am trying to learn how to program my palm m125. Yes I know it is old, but it is the only one I have. I am using Developer Suite from Access. Can anyone explain to me how I can get the mathLib.prc working with my project? I have followed the instructions that came with mathlib stating that the mathlib.h and mathlib.c files need to be included in your project. I have added the location of the mathlib.prc file to my path, and added its location to incluide directories. But everytime I try to compile, I get errors on every line of code throughout the entire mathlib.h file starting with the first line:

extern UInt16 MathLibRef;

which generates: data definition has no type or storage class

among others.

Thank you for your help.

dmitrygr
09-08-2007, 03:33 AM
show makefile

newpalmdev314
09-08-2007, 07:12 AM
The make file was generated by Developer Suite


# This file auto-generated by Palm OS Make builder. Don't modify directly!!!

# This value is unescaped. Either quote the value or escape special characters when you use it.
ifeq ($(TOOLS_DIR), )
TOOLS_DIR = C:/Program Files/PalmSource/Palm OS Developer Suite/PalmOSTools/
endif

# This value is unescaped. Either quote the value or escape special characters when you use it.
ifeq ($(SDK_LOCATION), )
SDK_LOCATION = C:/Program Files/PalmSource/Palm OS Developer Suite/sdk-5r4/
endif

ifeq ($(SDK_VERSION), )
SDK_VERSION = sdk-5r4
endif

ifeq ($(DATABASE_BUNDLE), )
DATABASE_BUNDLE =
endif

ifeq ($(DATABASE_RESET), )
DATABASE_RESET =
endif

ifeq ($(CREATOR_ID), )
CREATOR_ID = STRT
endif

ifeq ($(DATABASE_BACKUP), )
DATABASE_BACKUP = -b
endif

ifeq ($(DB_TYPE), )
DB_TYPE = appl
endif

ifeq ($(PROJECT_VERSION), )
PROJECT_VERSION = 10100
endif

ifeq ($(SDK), )
SDK = com.palmsource.eclipse.sdk.palmos5
endif

ifeq ($(DATABASE_PROTECT), )
DATABASE_PROTECT =
endif

ifeq ($(DB_NAME), )
DB_NAME = MyApp
endif

ifeq ($(DATABASE_HIDDEN), )
DATABASE_HIDDEN =
endif

ifeq ($(DATABASE_VERSION), )
DATABASE_VERSION = 1
endif

ifeq ($(OS_API), )
OS_API = 68K
endif

ifeq ($(PROJECT_TYPE), )
PROJECT_TYPE = appl
endif

ifeq ($(ARTIFACT_NAME), )
ARTIFACT_NAME = MyApp
endif

dmitrygr
09-08-2007, 11:30 AM
ah, that's no use...where is the list of files you're compiling? F*cking PODS

newpalmdev314
09-08-2007, 08:16 PM
The files are:
resource.xrd
appmain.h
configure.h
coordinate.h
resource.h
helper.h
MathLib.h
typedefs.h
appmain.c
configure.c
coordinate.c
helper.c
MathLib.c



Every line in MathLib generates errors like this:
../src/MathLib.h:192: parse error before `MathLibRemainder'
../src/MathLib.h:192: parse error before `refnum'
../src/MathLib.h:192: parse error before `+'
../src/MathLib.h:192: warning: type defaults to `int' in declaration of `SYS_TRAP'
../src/MathLib.h:192: warning: data definition has no type or storage class

Adding the source code to PODS for MathLib and then making my application dependent on it does not work either. I get a number of errors while trying to compile it.