./version:1:1 error expected unqualified-id

4 views
Skip to first unread message

Robert Lessard

unread,
Sep 7, 2021, 4:30:52 PM9/7/21
to us...@admb-project.org

Hi,

 

I would appreciate any guidance here.

 

Bob Lessard

 

I installed XCode, Command line tools, ADMB according to instructions. $PATH is /Applications/ADMBTerminal.app/admb-12.3/bin:/Users/bob/opt/anaconda3/bin:/Users/bob/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Apple/usr/bin: No such file or directory

 

I get this error when I build and compile with “admb simple” (from correct directory).

 

Last login: Tue Sep  7 12:15:03 on console

export ADMB_HOME="/Applications/ADMBTerminal.app/admb-12.3"; export PATH="/Applications/ADMBTerminal.app/admb-12.3/bin":${PATH}

 

The default interactive shell is now zsh.

To update your account to use zsh, please run `chsh -s /bin/zsh`.

For more details, please visit https://support.apple.com/kb/HT208050.

(base) Roberts-MBP-2:~ bob$ export ADMB_HOME="/Applications/ADMBTerminal.app/admb-12.3"; export PATH="/Applications/ADMBTerminal.app/admb-12.3/bin":${PATH}

(base) Roberts-MBP-2:~ bob$ cd admb

(base) Roberts-MBP-2:admb bob$ admb simple

*** Parse: simple.tpl

tpl2cpp simple || tpl2rem simple

 

*** Compile: simple.cpp

c++ -c -std=c++14 -O3 -D_USE_MATH_DEFINES -DUSE_ADMB_CONTRIBS -I. -I"/Applications/ADMBTerminal.app/admb-12.3/include" -I"/Applications/ADMBTerminal.app/admb-12.3/include/contrib" -osimple.obj simple.cpp

 

In file included from simple.cpp:10:

In file included from /Applications/ADMBTerminal.app/admb-12.3/include/admodel.h:55:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:276:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__bit_reference:14:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/bit:58:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/limits:105:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:417:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:37:

./version:1:1: error: expected unqualified-id

11.1

^

In file included from simple.cpp:10:

In file included from /Applications/ADMBTerminal.app/admb-12.3/include/admodel.h:55:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:276:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__bit_reference:14:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/bit:58:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/limits:105:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:418:

./version:1:1: error: expected unqualified-id

11.1

^

In file included from simple.cpp:10:

In file included from /Applications/ADMBTerminal.app/admb-12.3/include/admodel.h:55:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:276:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__bit_reference:14:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/bit:58:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/limits:121:

./version:1:1: error: expected unqualified-id

11.1

^

In file included from simple.cpp:10:

In file included from /Applications/ADMBTerminal.app/admb-12.3/include/admodel.h:55:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:276:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__bit_reference:14:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/bit:60:

./version:1:1: error: expected unqualified-id

11.1

^

 

 

 

Johnoel Ancheta

unread,
Sep 7, 2021, 5:11:47 PM9/7/21
to Robert Lessard, us...@admb-project.org
Hi Bob,

Looks like there is a version file in ~/admb  in the same directory as simple.tpl.

Move simple.tpl and simple.dat to another empty folder and build from there.

If this does not work, please build from source instead.  Follow the instructions
in the link below,


Johnoel


 

--
To unsubscribe from this group and stop receiving emails from it, send an email to users+un...@admb-project.org.

Johnoel Ancheta

unread,
Sep 7, 2021, 6:20:59 PM9/7/21
to us...@admb-project.org
Issue resolved.  Do not build ADMB tpl in a directory that has a version file.
Reply all
Reply to author
Forward
0 new messages