This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

error: `::acosl' undeclared : #INCLUDE <cmath> and <fstream>


Hello,

I am compiling using the latest Cygwin.
My main.cpp starts with:
- - - - - -
#include <cmath>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <stdio.h>
#include "ims/c4s/sa/tuf/Tracker.h"
#include "ims/c4s/sa/tuf/TrackInformation.h"
using namespace std;
- - - - - -
My Makefile has:
- - - - - -
OPTIONS = -Wall,--subsystem,windows -mno-cygwin -O2 -g -pedantic \
			-Wpointer-arith -Wcast-qual -Wcast-align \
			-Wwrite-strings -Wstrict-prototypes \
			-Wmissing-prototypes -Wconversion
	
INCLUDES = -I./
#INCLUDES += -IC:/cygwin/usr/include
#INCLUDES += -I/cygdrive/c/cygwin/usr/include

trackerTest: Main.cpp
	g++ $(OPTIONS) \
		$(INCLUDES) \
		-o trackerTest \
		Main.cpp \
		$(LIBRARIES)
- - - - - -
Compiling, I get a line:
   netinet/in.h: No such file or directory

I then then tried un-commented-out one of the #INCLUDES line
to get at the cygwin "netinet/in.h" file,
It is just:
- - - - -
#ifndef _NETINET_IN_H
#define _NETINET_IN_H

#include <cygwin/in.h>

#endif /* _NETINET_IN_H */
- - - - -
meaning that the useable version of in.h is:
   C:/cygwin/usr/include/cygwin/in.h

With that "fix",
4 errors are seen below (per error type, I am only showing you the 1st of many).
The "/usr/include/c++/3.3.3" is under C:\cygwin.

The #INCLUDE for <cmath> and <fstream>
seem to have problems with the latest Cygwin 3.3.3

Can you help?
-Harlan
- - - - - -
/usr/include/c++/3.3.3/cmath: In function `long double std::acos(long double)':
/usr/include/c++/3.3.3/cmath:194: error: `::acosl' undeclared (first use here)

In file included from /usr/include/c++/3.3.3/bits/stl_algobase.h:67,
                 from /usr/include/c++/3.3.3/memory:54,
                 from /usr/include/c++/3.3.3/string:48,
                 from /usr/include/c++/3.3.3/bits/locale_classes.h:47,
                 from /usr/include/c++/3.3.3/bits/ios_base.h:47,
                 from /usr/include/c++/3.3.3/ios:49,
                 from /usr/include/c++/3.3.3/istream:44,
                 from /usr/include/c++/3.3.3/fstream:45,
                 from Main.cpp:35:
/usr/include/c++/3.3.3/cstdlib: At global scope:
/usr/include/c++/3.3.3/cstdlib:177: error: `strtold' not declared
/usr/include/c++/3.3.3/cstdlib:196: error: `strtold' not declared

In file included from /usr/include/c++/3.3.3/bits/locale_facets.h:166,
                 from /usr/include/c++/3.3.3/bits/basic_ios.h:44,
                 from /usr/include/c++/3.3.3/ios:51,
                 from /usr/include/c++/3.3.3/istream:44,
                 from /usr/include/c++/3.3.3/fstream:45,
                 from Main.cpp:35:
/usr/include/c++/3.3.3/i686-pc-mingw32/bits/ctype_base.h:44: error: `_UPPER'
   was not declared in this scope

In file included from C:/cygwin/usr/include/cygwin/in.h:21,
                 from C:/cygwin/usr/include/netinet/in.h:14,
                 from ims/c4s/sa/tuf/TufConfig.h:34,
                 from ims/c4s/sa/tuf/Tracker.h:35,
                 from Main.cpp:42:
C:/cygwin/usr/include/stdint.h:21: error: ISO C++ does not support `long long'
- - - - - -
EOF


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]