Some strange boost headers errors
Hi guys, i'm a boost newbie. I've got to include boost libraries in the include path of a VisualStudio 2012 project. When i try to compile i have all these errors. Every errors is related to missing headers ( boost ones and even standard Win ones ) and to synthax errors depending on missing headers i guess. Do someone have any idea on what's wrong here? I just post here a few lines of errors, but the other ones are all of the same kind Error 1 error C2061: syntax error : identifier 'boost' C:\boost_1_57_0\boost\core\ checked_delete.hpp 24 1 csound~ Error 2 error C2059: syntax error : ';' C:\boost_1_57_0\boost\core\checked_delete.hpp 24 1 csound~ Error 3 error C2449: found '{' at file scope (missing function header?) C:\boost_1_57_0\boost\core\checked_delete.hpp 25 1 csound~ Error 4 error C2059: syntax error : '}' C:\boost_1_57_0\boost\core\checked_delete.hpp 67 1 csound~ Error 5 error C2054: expected '(' to follow 'using' C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cstddef 19 1 csound~ Error 6 error C2061: syntax error : identifier 'using' C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cstddef 19 1 csound~ Error 7 error C2061: syntax error : identifier 'boost' C:\boost_1_57_0\boost\smart_ptr\detail\sp_nullptr_t.hpp 23 1 csound~ Error 8 error C2059: syntax error : ';' C:\boost_1_57_0\boost\smart_ptr\detail\sp_nullptr_t.hpp 23 1 csound~ Error 9 error C2449: found '{' at file scope (missing function header?) C:\boost_1_57_0\boost\smart_ptr\detail\sp_nullptr_t.hpp 24 1 csound~ Error 10 error C2059: syntax error : '}' C:\boost_1_57_0\boost\smart_ptr\detail\sp_nullptr_t.hpp 41 1 csound~ Error 11 error C2054: expected '(' to follow 'using' C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cstdlib 19 1 csound~ Error 12 error C2061: syntax error : identifier 'using' C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cstdlib 19 1 csound~ Error 13 error C2061: syntax error : identifier 'abort' C:\Program Files (x86)\Microsoft Visual Studio many thanks in advance bests alfonso www.elgallorojorecords.com soundcloud.com/alfonsosantimone www.facebook.com/alfonsosantimone
Hey,
I've got to include boost libraries in the include path of a VisualStudio 2012 project. Can you send the exact value of the "Additional Include Paths" field from your Compiler page in your Project settings ? I think you have a typo there (because the compiler mentions csound, I guess its path is also added there, and a syntax error there can confuse the compiler).
- ch0kee --- Ezt az e-mailt az Avast víruskereső szoftver átvizsgálta. http://www.avast.com
Hi ch0Kee,
this is my Addictional Include Directories entry
C:\boost_1_57_0;$(C74SUPPORT)\max-includes;$(C74SUPPORT)\msp-includes;%(AdditionalIncludeDirectories)
actually i'm workin' inside the csound~ directory where my project is.
strange errors are the other ones referring to this VS dir
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\
mhhh...any idea?
many thanks for your kind help
a.
www.elgallorojorecords.com
soundcloud.com/alfonsosantimone
www.facebook.com/alfonsosantimone
On Mon, Nov 17, 2014 at 4:37 PM, ch0kee
Hey,
I've got to include boost libraries in the include path of a VisualStudio
2012 project.
Can you send the exact value of the "Additional Include Paths" field from your Compiler page in your Project settings ? I think you have a typo there (because the compiler mentions csound, I guess its path is also added there, and a syntax error there can confuse the compiler).
- ch0kee
--- Ezt az e-mailt az Avast víruskereső szoftver átvizsgálta. http://www.avast.com
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
and for additional infos this is my "Output" listing 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(38): error C2059: syntax error : ';' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(38): error C2061: syntax error : identifier 'atan2l' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(38): error C2061: syntax error : identifier 'ceill' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(39): error C2061: syntax error : identifier 'cosl' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(39): error C2059: syntax error : ';' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(39): error C2061: syntax error : identifier 'coshl' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(39): error C2061: syntax error : identifier 'expl' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(40): error C2061: syntax error : identifier 'fabsl' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(40): error C2059: syntax error : ';' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(40): error C2061: syntax error : identifier 'floorl' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(40): error C2061: syntax error : identifier 'fmodl' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(40): fatal error C1003: error count exceeds 100; stopping compilation 1> dllmain_win.c 1> Generating Code... ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== www.elgallorojorecords.com soundcloud.com/alfonsosantimone www.facebook.com/alfonsosantimone On Mon, Nov 17, 2014 at 4:48 PM, alfonso santimone < alfonso.santimone@gmail.com> wrote:
Hi ch0Kee,
this is my Addictional Include Directories entry
C:\boost_1_57_0;$(C74SUPPORT)\max-includes;$(C74SUPPORT)\msp-includes;%(AdditionalIncludeDirectories)
actually i'm workin' inside the csound~ directory where my project is.
strange errors are the other ones referring to this VS dir
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\
mhhh...any idea?
many thanks for your kind help
a.
www.elgallorojorecords.com soundcloud.com/alfonsosantimone www.facebook.com/alfonsosantimone
On Mon, Nov 17, 2014 at 4:37 PM, ch0kee
wrote: Hey,
I've got to include boost libraries in the include path of a
VisualStudio 2012 project.
Can you send the exact value of the "Additional Include Paths" field from your Compiler page in your Project settings ? I think you have a typo there (because the compiler mentions csound, I guess its path is also added there, and a syntax error there can confuse the compiler).
- ch0kee
--- Ezt az e-mailt az Avast víruskereső szoftver átvizsgálta. http://www.avast.com
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi all guys, any idea on this? thnks! a. www.elgallorojorecords.com soundcloud.com/alfonsosantimone www.facebook.com/alfonsosantimone On Mon, Nov 17, 2014 at 4:51 PM, alfonso santimone < alfonso.santimone@gmail.com> wrote:
and for additional infos this is my "Output" listing
1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(38): error C2059: syntax error : ';' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(38): error C2061: syntax error : identifier 'atan2l' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(38): error C2061: syntax error : identifier 'ceill' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(39): error C2061: syntax error : identifier 'cosl' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(39): error C2059: syntax error : ';' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(39): error C2061: syntax error : identifier 'coshl' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(39): error C2061: syntax error : identifier 'expl' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(40): error C2061: syntax error : identifier 'fabsl' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(40): error C2059: syntax error : ';' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(40): error C2061: syntax error : identifier 'floorl' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(40): error C2061: syntax error : identifier 'fmodl' 1>C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\cmath(40): fatal error C1003: error count exceeds 100; stopping compilation 1> dllmain_win.c 1> Generating Code... ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
www.elgallorojorecords.com soundcloud.com/alfonsosantimone www.facebook.com/alfonsosantimone
On Mon, Nov 17, 2014 at 4:48 PM, alfonso santimone < alfonso.santimone@gmail.com> wrote:
Hi ch0Kee,
this is my Addictional Include Directories entry
C:\boost_1_57_0;$(C74SUPPORT)\max-includes;$(C74SUPPORT)\msp-includes;%(AdditionalIncludeDirectories)
actually i'm workin' inside the csound~ directory where my project is.
strange errors are the other ones referring to this VS dir
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\
mhhh...any idea?
many thanks for your kind help
a.
www.elgallorojorecords.com soundcloud.com/alfonsosantimone www.facebook.com/alfonsosantimone
On Mon, Nov 17, 2014 at 4:37 PM, ch0kee
wrote: Hey,
I've got to include boost libraries in the include path of a
VisualStudio 2012 project.
Can you send the exact value of the "Additional Include Paths" field from your Compiler page in your Project settings ? I think you have a typo there (because the compiler mentions csound, I guess its path is also added there, and a syntax error there can confuse the compiler).
- ch0kee
--- Ezt az e-mailt az Avast víruskereső szoftver átvizsgálta. http://www.avast.com
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi, On Tue, Nov 18, 2014 at 2:10 PM, alfonso santimone < alfonso.santimone@gmail.com> wrote:
Hi all guys, any idea on this?
Usually with issues like that, I blame a missing curly-brace '}' in a
source file included previously.
Do you have problems if you compile a blank source file with only a boost
include? E.g. compile a file containing only #include
Hi Nate,
if i compile this
// boosttest.cpp : Defines the entry point for the console application.
//
#include wrote: Hi, On Tue, Nov 18, 2014 at 2:10 PM, alfonso santimone <
alfonso.santimone@gmail.com> wrote: Hi all guys,
any idea on this? Usually with issues like that, I blame a missing curly-brace '}' in a
source file included previously. Do you have problems if you compile a blank source file with only a boost
include? E.g. compile a file containing only #include
HTH,
Nate _______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
alfonso santimone wrote:
Hi Nate, if i compile this
// boosttest.cpp : Defines the entry point for the console application. //
#include
#include "stdafx.h" int main() { return 0; }
i have this
1>------ Rebuild All started: Project: boosttest, Configuration: Debug Win32 ------ 1> stdafx.cpp 1> boosttest.cpp 1> boosttest.vcxproj -> C:\Users\Live Machine\Desktop\boosttest\boosttest\Debug\boosttest.exe ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
so actually works
what do you mean exactly with "Usually with issues like that, I blame a missing curly-brace '}' in a source file included previously." ?
I would bet that in your actual source, one of the header files has something like the following: namespace my_stuff { //Lots of stuff, but no terminating '}'. That always throws of the compiler and gives you nearly unreadable errors in other header or source files. I would check the headers you're including to verify that something like that isn't happening with a namespace, function or class. By verifying that you can #include shared_ptr, it think it's clear that your include path is set correctly. HTH, Nate P.S. Please don't top-post
Hi Nate, many thanks for help! thanks i'll check and hope to find the wrong spot! best PS : i have to check how not to top-post with gmail. thanks for the info
Hi all guys,
i've been back and relized that when i try to compile
// boosttest.cpp : Defines the entry point for the console application.
//
#include
Hi Nate, many thanks for help! thanks i'll check and hope to find the wrong spot!
best
PS : i have to check how not to top-post with gmail. thanks for the info
AMDG On 05/15/2015 07:10 AM, alfonso santimone wrote:
but if i try to compile the same as a .c file (boosttest.c) i got the same errors as my first mail. so i guess boost can't be included in c files 'cause is c++..right?
Yes. The only exceptions are predef and preprocessor, I believe. In Christ, Steven Watanabe
On 5/15/2015 9:37 AM, Steven Watanabe wrote:
AMDG
On 05/15/2015 07:10 AM, alfonso santimone wrote:
but if i try to compile the same as a .c file (boosttest.c) i got the same errors as my first mail. so i guess boost can't be included in c files 'cause is c++..right?
Yes. The only exceptions are predef and preprocessor, I believe.
VMD should be usable within C code also, even though I designed the tests for it using C++ ( lightweight_test ).
participants (5)
-
alfonso santimone
-
ch0kee
-
Edward Diener
-
Nate Crookston
-
Steven Watanabe