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

Fixing errors when compiling on Mac OS X. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cmkilger
Copy link

@cmkilger cmkilger commented Oct 2, 2014

I was getting the following errors before the change.

g++ -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" -DPACKAGE_SRC_DIR=\""."\" -DPACKAGE_DATA_DIR=\""/usr/local/share"\"  -DNDEBUG -DWORDINDEX_WITH_4_BYTE -DBINARY_SEARCH_FOR_TTABLE -DDEBUG  -Wno-deprecated -Wno-write-strings -I/opt/local/include -MD -MP -MF -MT -O6 -g -O2 -MT libgiza_a-NTables.o -MD -MP -MF .deps/libgiza_a-NTables.Tpo -c -o libgiza_a-NTables.o `test -f 'NTables.cpp' || echo './'`NTables.cpp
In file included from NTables.cpp:22:
In file included from ./NTables.h:24:
In file included from ./Array2.h:31:
./mystl.h:299:24: error: expected a qualified name after 'typename'
const T *conv(typename vector<T>::const_iterator i)
                       ^
./mystl.h:299:24: error: expected a qualified name after 'typename'
./mystl.h:299:30: error: expected ')'
const T *conv(typename vector<T>::const_iterator i)
                             ^
./mystl.h:299:14: note: to match this '('
const T *conv(typename vector<T>::const_iterator i)
             ^
./mystl.h:301:13: error: use of undeclared identifier 'i'
  return &(*i);
            ^
./mystl.h:305:18: error: expected a qualified name after 'typename'
T *conv(typename vector<T>::iterator i)
                 ^
./mystl.h:305:18: error: expected a qualified name after 'typename'
./mystl.h:305:24: error: expected ')'
T *conv(typename vector<T>::iterator i)
                       ^
./mystl.h:305:8: note: to match this '('
T *conv(typename vector<T>::iterator i)
       ^
./mystl.h:307:13: error: use of undeclared identifier 'i'
  return &(*i);
            ^
8 errors generated.

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

Successfully merging this pull request may close these issues.

1 participant