Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbols for architecture x86_64 error on Mac #24

Open
haoranshigrab opened this issue May 18, 2018 · 0 comments
Open

Undefined symbols for architecture x86_64 error on Mac #24

haoranshigrab opened this issue May 18, 2018 · 0 comments

Comments

@haoranshigrab
Copy link

Hello, everyone. When I try to compile this tool on mac, I got the following errors:

Undefined symbols for architecture x86_64:
   "_alWalk", referenced from:
       _alNew in edgetypes.o
   "_alWalkBack", referenced from:
       _alNew in edgetypes.o
   "_crWalk", referenced from:
       _crNew in edgetypes.o
   "_crWalkBack", referenced from:
       _crNew in edgetypes.o
   "_egressWalk", referenced from:
       _egressNew in edgetypes.o
   "_egressWalkBack", referenced from:
       _egressNew in edgetypes.o
   "_elapseTimeWalk", referenced from:
       _elapseTimeNew in edgetypes.o
   "_elapseTimeWalkBack", referenced from:
       _elapseTimeNew in edgetypes.o
   "_haWalk", referenced from:
       _haNew in edgetypes.o
   "_haWalkBack", referenced from:
       _haNew in edgetypes.o
   "_hbWalk", referenced from:
       _hbNew in edgetypes.o
   "_hbWalkBack", referenced from:
       _hbNew in edgetypes.o
   "_headwayWalk", referenced from:
       _headwayNew in edgetypes.o
   "_headwayWalkBack", referenced from:
       _headwayNew in edgetypes.o
   "_linkWalk", referenced from:
       _linkNew in edgetypes.o
   "_linkWalkBack", referenced from:
       _linkNew in edgetypes.o
   "_streetWalk", referenced from:
       _streetNew in edgetypes.o
   "_streetWalkBack", referenced from:
       _streetNew in edgetypes.o
   "_tbWalk", referenced from:
       _tbNew in edgetypes.o
   "_tbWalkBack", referenced from:
       _tbNew in edgetypes.o
   "_waitWalk", referenced from:
       _waitNew in edgetypes.o
   "_waitWalkBack", referenced from:
       _waitNew in edgetypes.o
 ld: symbol(s) not found for architecture x86_64

The command I use is python setup.py install. My mac is macOS High Sierra 10.13.4. I have made the following modifications to make it pass C99 standard. Thanks if anyone can help!

-- a/core/hashtable_itr.h
+++ b/core/hashtable_itr.h
@@ -28,20 +28,12 @@ hashtable_iterator(struct hashtable *h);
 /* hashtable_iterator_key
  * - return the value of the (key,value) pair at the current position */

-extern inline void *
-hashtable_iterator_key(struct hashtable_itr *i)
-{
-    return i->e->k;
-}
+void *hashtable_iterator_key(struct hashtable_itr *i);

 /*****************************************************************************/
 /* value - return the value of the (key,value) pair at the current position */

-extern inline void *
-hashtable_iterator_value(struct hashtable_itr *i)
-{
-    return i->e->v;
-}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant