Then I include /usr/include trying to fix the warning: stdlib.h: No
such file
or directory
make flags:
Compile C and C++ source with CPPFLAGS:
-g
-nostdinc
-DCPPUTEST_STD_CPP_LIB_DISABLED
-fprofile-arcs
-ftest-coverage
-pedantic-errors
-Wall
-Wextra
-Wshadow
-Wswitch-default
-Wswitch-enum
-Wconversion
-I.
-I/home/edgijlq/UnitTestFramework/CppUTest/include
-I/usr/include
make result:
Making clean
compiling AllTests.cpp
In file included from /home/edgijlq/T063GMIII_VOBS/ONT_SW_bba/
linux-2.6.34.6/include/linux/stddef.h:4,
from /usr/include/stdlib.h:33,
from /home/edgijlq/UnitTestFramework/CppUTest/include/
CppUTest/MemoryLeakDetectorNewMacros.h:2 8,
from <command line>:1:
/usr/include/linux/compiler.h:29:32: error: ISO C does not permit
named variadic macros
In file included from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:438,
from /home/edgijlq/UnitTestFramework/CppUTest/include/
CppUTest/MemoryLeakDetectorNewMacros.h:2 8,
from <command line>:1:
/usr/include/sys/select.h:93:1: error: "FD_SET" redefined
In file included from /usr/include/sys/types.h:133,
from /usr/include/stdlib.h:438,
from /home/edgijlq/UnitTestFramework/CppUTest/include/
CppUTest/MemoryLeakDetectorNewMacros.h:2 8,
from <command line>:1:
/home/edgijlq/T063GMIII_VOBS/ONT_SW_bba/linux-2.6.34.6/include/linux/
time.h:246:1: error: this is the location of the previous
definition
In file included from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:438,
from /home/edgijlq/UnitTestFramework/CppUTest/include/
CppUTest/MemoryLeakDetectorNewMacros.h:2 8,
from <command line>:1:
/usr/include/sys/select.h:94:1: error: "FD_CLR" redefined
In file included from /usr/include/sys/types.h:133,
from /usr/include/stdlib.h:438,
from /home/edgijlq/UnitTestFramework/CppUTest/include/
CppUTest/MemoryLeakDetectorNewMacros.h:2 8,
from <command line>:1:
/home/edgijlq/T063GMIII_VOBS/ONT_SW_bba/linux-2.6.34.6/include/linux/
time.h:247:1: error: this is the location of the previous
definition
In file included from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:438,
from /home/edgijlq/UnitTestFramework/CppUTest/include/
CppUTest/MemoryLeakDetectorNewMacros.h:2 8,
from <command line>:1:
/usr/include/sys/select.h:95:1: error: "FD_ISSET" redefined
In file included from /usr/include/sys/types.h:133,
from /usr/include/stdlib.h:438,
from /home/edgijlq/UnitTestFramework/CppUTest/include/
CppUTest/MemoryLeakDetectorNewMacros.h:2 8,
from <command line>:1:
/home/edgijlq/T063GMIII_VOBS/ONT_SW_bba/linux-2.6.34.6/include/linux/
time.h:248:1: error: this is the location of the previous
definition
In file included from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:438,
from /home/edgijlq/UnitTestFramework/CppUTest/include/
CppUTest/MemoryLeakDetectorNewMacros.h:2 8,
from <command line>:1:
/usr/include/sys/select.h:96:1: error: "FD_ZERO" redefined
In file included from /usr/include/sys/types.h:133,
from /usr/include/stdlib.h:438,
from /home/edgijlq/UnitTestFramework/CppUTest/include/
CppUTest/MemoryLeakDetectorNewMacros.h:2 8,
from <command line>:1:
/home/edgijlq/T063GMIII_VOBS/ONT_SW_bba/linux-2.6.34.6/include/linux/
time.h:249:1: error: this is the location of the previous
definition
In file included from /home/edgijlq/UnitTestFramework/CppUTest/include/
CppUTest/Utest.h:34,
from /home/edgijlq/UnitTestFramework/CppUTest/include/
CppUTest/TestHarness.h:71,
from /home/edgijlq/UnitTestFramework/CppUTest/include/
CppUTest/CommandLineTestRunner.h:31,
from AllTests.cpp:28:
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:41:20: warning: stdarg.h: No such file or
directory
/usr/include/stdlib.h:140: error: ‘size_t’ does not name a type
/usr/include/asm-x86_64/posix_types.h:32: error: ISO C++ does not
support ‘long long’
/usr/include/asm-x86_64/types.h:22: error: ISO C++ does not support
‘long long’
/usr/include/asm-x86_64/types.h:23: error: ISO C++ does not support
‘long long’
/usr/include/bits/time.h:69: error: redefinition of ‘struct timeval’
/home/edgijlq/T063GMIII_VOBS/ONT_SW_bba/linux-2.6.34.6/include/linux/
time.h:20: error: previous definition of ‘ struct timeval’
/usr/include/stdlib.h:455: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:485: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:542: error: ISO C++ does not support ‘long long’
/usr/include/stdlib.h:589: warning: ‘malloc’ initialized and declared
‘extern’
/usr/include/stdlib.h:589: error: ‘size_t’ was not declared in this
scope
/usr/include/stdlib.h:589: error: expected ‘,’ or ‘;’ before ‘throw’
/usr/include/stdlib.h:591: warning: ‘calloc’ initialized and declared
‘extern’
/usr/include/stdlib.h:591: error: ‘size_t’ was not declared in this
scope
/usr/include/stdlib.h:591: error: ‘size_t’ was not declared in this
scope
/usr/include/stdlib.h:591: error: initializer expression list treated
as compound expression
/usr/include/stdlib.h:592: error: expected ‘,’ or ‘;’ before ‘throw’
/usr/include/stdlib.h:600: error: ‘size_t’ has not been declared
/usr/include/alloca.h:33: warning: ‘alloca’ initialized and declared
‘extern’
/usr/include/alloca.h:33: error: ‘size_t’ was not declared in this
scope
/usr/include/alloca.h:33: error: expected ‘,’ or ‘;’ before ‘throw’
/usr/include/stdlib.h:617: warning: ‘valloc’ initialized and declared
‘extern’
/usr/include/stdlib.h:617: error: ‘size_t’ was not declared in this
scope
/usr/include/stdlib.h:617: error: expected ‘,’ or ‘;’ before ‘throw’
/usr/include/stdlib.h:622: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:622: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:779: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:779: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:784: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:784: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:787: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:787: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:862: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:865: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:869: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:873: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:882: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:886: error: ‘size_t’ has not been declared
/usr/include/stdlib.h:893: error: ‘size_t’ does not name a type
/usr/include/stdlib.h:896: error: ‘size_t’ does not name a type
/usr/include/stdlib.h:959: error: ‘size_t’ has not been declared
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorNewMacros.h:61: error: declaration of
‘operator new’ as non-function
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorNewMacros.h:61: error: ‘size_t’ was not
declared in this scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorNewMacros.h:61: error: expected pri mary-
expression before ‘const’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorNewMacros.h:61: error: expected pri mary-
expression before ‘int’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorNewMacros.h:62: error: declaration of
‘operator new []’ as non-function
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorNewMacros.h:62: error: ‘size_t’ was not
declared in this scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorNewMacros.h:62: error: expected pri mary-
expression before ‘const’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorNewMacros.h:62: error: expected pri mary-
expression before ‘int’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorNewMacros.h:63: error: declaration of
‘operator new’ as non-function
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorNewMacros.h:63: error: ‘size_t’ was not
declared in this scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorNewMacros.h:64: error: declaration of
‘operator new []’ as non-function
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorNewMacros.h:64: error: ‘size_t’ was not
declared in this scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:33: warning: ‘cppute
st_malloc_location’ initialized and declared ‘extern’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:33: error: ‘size_t’ was not
declared in this scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:33: error: expected primary-
expression before ‘const’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:33: error: expected primary-
expression before ‘int’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:33: error: initializ er
expression list treated as compound expression
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:34: warning: ‘cppute
st_calloc_location’ initialized and declared ‘extern’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:34: error: ‘size_t’ was not
declared in this scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:34: error: ‘size_t’ was not
declared in this scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:34: error: expected primary-
expression before ‘const’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:34: error: expected primary-
expression before ‘int’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:34: error: initializ er
expression list treated as compound expression
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:35: error: ‘size_t’ has not
been declared
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:54: error: ‘size_t’ has not been decla red
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:71: error: ‘size_t’ does not name a ty pe
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:77: error: ‘size_t’ has not been decla red
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:77: error: ‘size_t’ has not been decla red
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:78: error: ‘size_t’ has not been decla red
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:81: error: ‘size_t’ does not name a ty pe
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:89: error: expected ‘;’ before ‘(’ tok en
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:105: error: ‘size_t’ has not been decl ared
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:107: error: ‘size_t’ does not name a t ype
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:108: error: declaration of ‘operator[] ’ as non-
function
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:108: error: expected ‘;’ before ‘(’ to ken
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:113: error: ‘size_t’ does not name a t ype
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
SimpleString.h:130: error: ‘va_list’ has not been dec lared
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:79: warning: ‘cpputest_malloc’ initia lized and
declared ‘extern’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:79: error: ‘size_t’ was not declared in this
scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:80: warning: ‘cpputest_calloc’ initia lized and
declared ‘extern’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:80: error: ‘size_t’ was not declared in this
scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:80: error: ‘size_t’ was not declared in this
scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:80: error: initializer expression lis t treated
as compound expression
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:81: error: ‘size_t’ has not been decl ared
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:84: warning: ‘cpputest_malloc_locatio n’
initialized and declared ‘extern’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:84: error: redefinition of ‘void* cpp
utest_malloc_location’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:33: error: ‘void* cp
putest_malloc_location’ previously defined here
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:84: error: ‘size_t’ was not declared in this
scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:84: error: expected primary-expressio n before
‘const’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:84: error: expected primary-expressio n before
‘int’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:85: warning: ‘cpputest_calloc_locatio n’
initialized and declared ‘extern’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:85: error: redefinition of ‘void* cpp
utest_calloc_location’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakDetectorMallocMacros.h:34: error: ‘void* cp
putest_calloc_location’ previously defined here
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:85: error: ‘size_t’ was not declared in this
scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:85: error: ‘size_t’ was not declared in this
scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:86: error: expected primary-expressio n before
‘const’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:86: error: expected primary-expressio n before
‘int’
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
TestHarness_c.h:87: error: ‘size_t’ has not been decl ared
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakWarningPlugin.h:63: error: declaration of ‘ operator
new’ as non-function
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakWarningPlugin.h:63: error: ‘size_t’ was not declared
in this scope
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakWarningPlugin.h:64: error: declaration of ‘ operator
new []’ as non-function
/home/edgijlq/UnitTestFramework/CppUTest/include/CppUTest/
MemoryLeakWarningPlugin.h:64: error: ‘size_t’ was not declared
in this scope
> ...
>
> read more »