Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Try: gcc
- Line: gcc -Zexe cmake_bootstrap_1190_test.c -o cmake_bootstrap_1190_test
- ---------- file -----------------------
- #ifdef __cplusplus
- # error "The CMAKE_C_COMPILER is set to a C++ compiler"
- #endif
- #include<stdio.h>
- #if defined(__CLASSIC_C__)
- int main(argc, argv)
- int argc;
- char* argv[];
- #else
- int main(int argc, char* argv[])
- #endif
- {
- printf("%d%c", (argv != 0), (char)0x0a);
- return argc-1;
- }
- ------------------------------------------
- 1
- Test succeeded
- Try: g++
- Line: g++ -DTEST1 -Zexe cmake_bootstrap_1190_test.cxx -o cmake_bootstrap_1190_test
- ---------- file -----------------------
- #if defined(TEST1)
- # include <iostream>
- #else
- # include <iostream.h>
- #endif
- class NeedCXX
- {
- public:
- NeedCXX() { this->Foo = 1; }
- int GetFoo() { return this->Foo; }
- private:
- int Foo;
- };
- int main()
- {
- NeedCXX c;
- #ifdef TEST3
- cout << c.GetFoo() << endl;
- #else
- std::cout << c.GetFoo() << std::endl;
- #endif
- return 0;
- }
- ------------------------------------------
- In file included from C:/USR/include/sys/types.h:307:0,
- from C:/USR/include/InnoTekLIBC/backend.h:31,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
- from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
- from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
- from C:/USR/include/c++/4.9.2/ios:42,
- from C:/USR/include/c++/4.9.2/ostream:38,
- from C:/USR/include/c++/4.9.2/iostream:39,
- from cmake_bootstrap_1190_test.cxx:3:
- C:\os2tk45/H/sys/select.h:56:1: error: stray '\32' in program
- In file included from C:/USR/include/InnoTekLIBC/backend.h:34:0,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
- from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
- from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
- from C:/USR/include/c++/4.9.2/ios:42,
- from C:/USR/include/c++/4.9.2/ostream:38,
- from C:/USR/include/c++/4.9.2/iostream:39,
- from cmake_bootstrap_1190_test.cxx:3:
- C:\os2tk45/H/sys/time.h:140:1: error: stray '\32' in program
- In file included from C:/USR/include/emx/io.h:8:0,
- from C:/USR/include/InnoTekLIBC/backend.h:39,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
- from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
- from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
- from C:/USR/include/c++/4.9.2/ios:42,
- from C:/USR/include/c++/4.9.2/ostream:38,
- from C:/USR/include/c++/4.9.2/iostream:39,
- from cmake_bootstrap_1190_test.cxx:3:
- C:/USR/include/InnoTekLIBC/fork.h:512:20: error: missing binary operator before token "("
- #if __GNUC_PREREQ__(4,2)
- ^
- In file included from C:/USR/include/sys/fmutex.h:11:0,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:41,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
- from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
- from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
- from C:/USR/include/c++/4.9.2/ios:42,
- from C:/USR/include/c++/4.9.2/ostream:38,
- from C:/USR/include/c++/4.9.2/iostream:39,
- from cmake_bootstrap_1190_test.cxx:3:
- C:/USR/include/stdlib.h:90:19: error: expected initializer before '__dead2'
- void abort(void) __dead2;
- ^
- C:/USR/include/stdlib.h:91:15: error: expected initializer before '__pure2'
- int abs(int) __pure2;
- ^
- C:/USR/include/stdlib.h:99:22: error: expected initializer before '__pure2'
- div_t div(int, int) __pure2;
- ^
- C:/USR/include/stdlib.h:100:17: error: expected initializer before '__dead2'
- void exit(int) __dead2;
- ^
- C:/USR/include/stdlib.h:103:18: error: expected initializer before '__pure2'
- long labs(long) __pure2;
- ^
- C:/USR/include/stdlib.h:104:26: error: expected initializer before '__pure2'
- ldiv_t ldiv(long, long) __pure2;
- ^
- In file included from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:45:0,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
- from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
- from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
- from C:/USR/include/c++/4.9.2/ios:42,
- from C:/USR/include/c++/4.9.2/ostream:38,
- from C:/USR/include/c++/4.9.2/iostream:39,
- from cmake_bootstrap_1190_test.cxx:3:
- C:/USR/include/InnoTekLIBC/thread.h:61:5: error: 'sigset_t' does not name a type
- sigset_t SigSetWait;
- ^
- C:/USR/include/InnoTekLIBC/thread.h:63:5: error: 'siginfo_t' does not name a type
- siginfo_t SigInfo;
- ^
- C:/USR/include/InnoTekLIBC/thread.h:140:5: error: 'sigset_t' does not name a type
- sigset_t SigSetPending;
- ^
- C:/USR/include/InnoTekLIBC/thread.h:143:5: error: 'sigset_t' does not name a type
- sigset_t SigSetBlocked;
- ^
- C:/USR/include/InnoTekLIBC/thread.h:149:5: error: 'sigset_t' does not name a type
- sigset_t SigSetBlockedOld;
- ^
- In file included from C:/USR/include/InnoTekLIBC/backend.h:34:0,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
- from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
- from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
- from C:/USR/include/c++/4.9.2/ios:42,
- from C:/USR/include/c++/4.9.2/ostream:38,
- from C:/USR/include/c++/4.9.2/iostream:39,
- from cmake_bootstrap_1190_test.cxx:3:
- C:\os2tk45/H/sys/time.h:48:8: error: redefinition of 'struct timeval'
- struct timeval {
- ^
- In file included from C:/USR/include/InnoTekLIBC/backend.h:32:0,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
- from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
- from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
- from C:/USR/include/c++/4.9.2/ios:42,
- from C:/USR/include/c++/4.9.2/ostream:38,
- from C:/USR/include/c++/4.9.2/iostream:39,
- from cmake_bootstrap_1190_test.cxx:3:
- C:/USR/include/sys/_timeval.h:55:8: error: previous definition of 'struct timeval'
- struct timeval {
- ^
- In file included from C:/USR/include/InnoTekLIBC/backend.h:34:0,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
- from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
- from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
- from C:/USR/include/c++/4.9.2/ios:42,
- from C:/USR/include/c++/4.9.2/ostream:38,
- from C:/USR/include/c++/4.9.2/iostream:39,
- from cmake_bootstrap_1190_test.cxx:3:
- C:\os2tk45/H/sys/time.h:57:8: error: redefinition of 'struct timespec'
- struct timespec {
- ^
- In file included from C:/USR/include/signal.h:50:0,
- from C:/USR/include/InnoTekLIBC/thread.h:45,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:45,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
- from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
- from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
- from C:/USR/include/c++/4.9.2/ios:42,
- from C:/USR/include/c++/4.9.2/ostream:38,
- from C:/USR/include/c++/4.9.2/iostream:39,
- from cmake_bootstrap_1190_test.cxx:3:
- C:/USR/include/sys/timespec.h:58:8: error: previous definition of 'struct timespec'
- struct timespec {
- ^
- In file included from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46:0,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
- from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
- from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
- from C:/USR/include/c++/4.9.2/ios:42,
- from C:/USR/include/c++/4.9.2/ostream:38,
- from C:/USR/include/c++/4.9.2/iostream:39,
- from cmake_bootstrap_1190_test.cxx:3:
- C:/USR/include/InnoTekLIBC/backend.h:731:50: error: 'siginfo_t' does not name a type
- int __libc_Back_signalRaise(int iSignalNo, const siginfo_t *pSigInfo, void *pvXcptOrQueued, unsigned fFlags);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:811:57: error: 'stack_t' does not name a type
- int __libc_Back_signalStack(__LIBC_PTHREAD pThrd, const stack_t *pStack, stack_t *pOldStack);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:811:74: error: 'stack_t' has not been declared
- int __libc_Back_signalStack(__LIBC_PTHREAD pThrd, const stack_t *pStack, stack_t *pOldStack);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:835:66: error: 'sigset_t' does not name a type
- int __libc_Back_signalMask(__LIBC_PTHREAD pThrd, int iHow, const sigset_t * __restrict pSigSetNew, sigset_t * __restrict pSigSetOld);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:835:100: error: 'sigset_t' has not been declared
- int __libc_Back_signalMask(__LIBC_PTHREAD pThrd, int iHow, const sigset_t * __restrict pSigSetNew, sigset_t * __restrict pSigSetOld);
- ^
- In file included from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr-default.h:46:0,
- from C:/USR/include/c++/4.9.2/i386-pc-os2-emx/bits/gthr.h:148,
- from C:/USR/include/c++/4.9.2/ext/atomicity.h:35,
- from C:/USR/include/c++/4.9.2/bits/ios_base.h:39,
- from C:/USR/include/c++/4.9.2/ios:42,
- from C:/USR/include/c++/4.9.2/ostream:38,
- from C:/USR/include/c++/4.9.2/iostream:39,
- from cmake_bootstrap_1190_test.cxx:3:
- C:/USR/include/InnoTekLIBC/backend.h:851:34: error: 'sigset_t' does not name a type
- int __libc_Back_signalWait(const sigset_t *pSigSet, siginfo_t *pSigInfo, const struct timespec *pTimeout);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:851:53: error: 'siginfo_t' has not been declared
- int __libc_Back_signalWait(const sigset_t *pSigSet, siginfo_t *pSigInfo, const struct timespec *pTimeout);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:859:37: error: 'sigset_t' does not name a type
- int __libc_Back_signalSuspend(const sigset_t *pSigSet);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:869:31: error: 'sigset_t' was not declared in this scope
- int __libc_Back_signalPending(sigset_t *pSigSet);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:869:41: error: 'pSigSet' was not declared in this scope
- int __libc_Back_signalPending(sigset_t *pSigSet);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:926:29: error: 'idtype_t' was not declared in this scope
- int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:926:54: error: expected primary-expression before 'Id'
- int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:926:58: error: 'siginfo_t' was not declared in this scope
- int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:926:69: error: 'pSigInfo' was not declared in this scope
- int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:926:79: error: expected primary-expression before 'unsigned'
- int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:926:98: error: expected primary-expression before 'struct'
- int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:926:119: error: expression list treated as compound expression in initializer [-fpermissive]
- int __libc_Back_processWait(idtype_t enmIdType, id_t Id, siginfo_t *pSigInfo, unsigned fOptions, struct rusage *pUsage);
- ^
- C:/USR/include/InnoTekLIBC/backend.h:1074:1: error: 'hrtime_t' does not name a type
- hrtime_t __libc_Back_timeHighResNano(void);
- ^
- Test failed to compile
- Try: g++
- Line: g++ -DTEST2 -Zexe cmake_bootstrap_1190_test.cxx -o cmake_bootstrap_1190_test
- ---------- file -----------------------
- #if defined(TEST1)
- # include <iostream>
- #else
- # include <iostream.h>
- #endif
- class NeedCXX
- {
- public:
- NeedCXX() { this->Foo = 1; }
- int GetFoo() { return this->Foo; }
- private:
- int Foo;
- };
- int main()
- {
- NeedCXX c;
- #ifdef TEST3
- cout << c.GetFoo() << endl;
- #else
- std::cout << c.GetFoo() << std::endl;
- #endif
- return 0;
- }
- ------------------------------------------
- cmake_bootstrap_1190_test.cxx:5:23: fatal error: iostream.h: No such file or directory
- # include <iostream.h>
- ^
- compilation terminated.
- Test failed to compile
- Try: g++
- Line: g++ -DTEST3 -Zexe cmake_bootstrap_1190_test.cxx -o cmake_bootstrap_1190_test
- ---------- file -----------------------
- #if defined(TEST1)
- # include <iostream>
- #else
- # include <iostream.h>
- #endif
- class NeedCXX
- {
- public:
- NeedCXX() { this->Foo = 1; }
- int GetFoo() { return this->Foo; }
- private:
- int Foo;
- };
- int main()
- {
- NeedCXX c;
- #ifdef TEST3
- cout << c.GetFoo() << endl;
- #else
- std::cout << c.GetFoo() << std::endl;
- #endif
- return 0;
- }
- ------------------------------------------
- cmake_bootstrap_1190_test.cxx:5:23: fatal error: iostream.h: No such file or directory
- # include <iostream.h>
- ^
- compilation terminated.
- Test failed to compile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement