RFID Toys Homepage
Holy crap, check out the Dangerous Things store!
Forum Home Forum Home > Projects and such > Book Projects
  New Posts New Posts RSS Feed - Mac C implementations
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mac C implementations

 Post Reply Post Reply Page  <12
Author
Message
tinkerC View Drop Down
Newbie
Newbie
Avatar

Joined: 25 December 2008
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote tinkerC Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2008 at 3:07pm
Where do you find it from? Could you please post an entire error, the file,
and the line number?
Geek

Yep, that's me.

I'm also a gearhead

Geek
Back to Top
tinkerC View Drop Down
Newbie
Newbie
Avatar

Joined: 25 December 2008
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote tinkerC Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2008 at 3:10pm
Originally posted by mcgurrin mcgurrin wrote:

I made sure it was in the search path for mine, and
phidget21.h is installed by the framework installer.  I have also tried putting
it in the same folder and using quotes, and it still fails, though with different
errors.


How do you get the file installed? Could you post another error and line
number for file?
Geek

Yep, that's me.

I'm also a gearhead

Geek
Back to Top
mcgurrin View Drop Down
Newbie
Newbie


Joined: 25 December 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote mcgurrin Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2008 at 4:05pm
It installed automatically with the framework installer.

Below is the build log from my IDE

-------------- Build: Debug in rfid sample ---------------

Compiling: RFID-simple.c
Linking console executable: bin/Debug/rfid sample
Undefined symbols:
  "_CPhidget_set_OnDetach_Handler", referenced from:
      _rfid_simple in RFID-simple.o
  "_CPhidget_set_OnAttach_Handler", referenced from:
      _rfid_simple in RFID-simple.o
  "_CPhidget_open", referenced from:
      _rfid_simple in RFID-simple.o
  "_CPhidget_getErrorDescription", referenced from:
      _rfid_simple in RFID-simple.o
  "_CPhidgetRFID_create", referenced from:
      _rfid_simple in RFID-simple.o
  "_CPhidget_set_OnError_Handler", referenced from:
      _rfid_simple in RFID-simple.o
  "_CPhidget_getDeviceName", referenced from:
      _AttachHandler in RFID-simple.o
      _DetachHandler in RFID-simple.o
  "_CPhidgetRFID_getOutputCount", referenced from:
      _display_properties in RFID-simple.o
  "_CPhidget_getDeviceType", referenced from:
      _display_properties in RFID-simple.o
  "_CPhidgetRFID_setLEDOn", referenced from:
      _TagHandler in RFID-simple.o
      _TagLostHandler in RFID-simple.o
  "_CPhidget_delete", referenced from:
      _rfid_simple in RFID-simple.o
  "_CPhidgetRFID_setAntennaOn", referenced from:
      _rfid_simple in RFID-simple.o
  "_CPhidget_getSerialNumber", referenced from:
      _AttachHandler in RFID-simple.o
      _DetachHandler in RFID-simple.o
      _display_properties in RFID-simple.o
  "_CPhidgetRFID_setOutputState", referenced from:
      _rfid_simple in RFID-simple.o
      _rfid_simple in RFID-simple.o
  "_CPhidgetRFID_set_OnTagLost_Handler", referenced from:
      _rfid_simple in RFID-simple.o
  "_CPhidgetRFID_set_OnOutputChange_Handler", referenced from:
      _rfid_simple in RFID-simple.o
  "_CPhidget_getDeviceVersion", referenced from:
      _display_properties in RFID-simple.o
  "_CPhidget_waitForAttachment", referenced from:
      _rfid_simple in RFID-simple.o
  "_CPhidgetRFID_getLEDOn", referenced from:
      _display_properties in RFID-simple.o
  "_CPhidgetRFID_getAntennaOn", referenced from:
      _display_properties in RFID-simple.o
  "_CPhidget_close", referenced from:
      _rfid_simple in RFID-simple.o
  "_CPhidgetRFID_set_OnTag_Handler", referenced from:
      _rfid_simple in RFID-simple.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings
 

Back to Top
tinkerC View Drop Down
Newbie
Newbie
Avatar

Joined: 25 December 2008
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote tinkerC Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2008 at 4:28pm
Do you have all of the files uploaded in to the xcode project? These
functions are from other files, and you need to run all to get anything.
Geek

Yep, that's me.

I'm also a gearhead

Geek
Back to Top
mcgurrin View Drop Down
Newbie
Newbie


Joined: 25 December 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote mcgurrin Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2008 at 6:49am
I am not using xcode, I am using CodeBlocks to develop it.  I had the .h file included, what other files would I need to include?
Back to Top
tinkerC View Drop Down
Newbie
Newbie
Avatar

Joined: 25 December 2008
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote tinkerC Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2008 at 7:12am
You wouldn't #include them, you would upload them into he project. I
don't know how on CodeBlocks, but those functions are all in other .c files.
The files can be found in the folder standardC. Upload all of them. All of
them.
Geek

Yep, that's me.

I'm also a gearhead

Geek
Back to Top
mcgurrin View Drop Down
Newbie
Newbie


Joined: 25 December 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote mcgurrin Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2008 at 7:21am
I don't see any file with those functions in the standardC folder.  I know how to add the files to a project, but if I don't have the file I can't add it.  The files in that folder are the examples, not the library inclusions or implementations.
Back to Top
tinkerC View Drop Down
Newbie
Newbie
Avatar

Joined: 25 December 2008
Location: United States
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote tinkerC Quote  Post ReplyReply Direct Link To This Post Posted: 29 December 2008 at 12:07pm
Open the .tar file. The files are not just examples, they are the actual code.
Geek

Yep, that's me.

I'm also a gearhead

Geek
Back to Top
 Post Reply Post Reply Page  <12
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.438 seconds.