gerald-lindsly / mongo-delphi-driver

MongoDB Driver for Delphi
Apache License 2.0
47 stars 26 forks source link

Errors while compiling the library with SCons #13

Open thiagorod opened 3 years ago

thiagorod commented 3 years ago

I got this file after the compilation process.... with and without the --m32 parameter. Compiling under Windows 10 64 SCons 4.0.1.

scons: Configure: Checking for C type int64_t... .sconf_temp\conftest_d18340ea9d0ee1f22790765b4ef6a630_0.c <-
int main(void) {
if ((int64_t *) 0)
return 0;
if (sizeof (int64_t))
return 0;
}

bcc32 -q -c -o.sconf_temp\conftest_d18340ea9d0ee1f22790765b4ef6a630_0.obj .sconf_temp\conftest_d18340ea9d0ee1f22790765b4ef6a630_0.c .sconf_temp\conftest_d18340ea9d0ee1f22790765b4ef6a630_0.c: Error E2451 .sconf_temp\conftest_d18340ea9d0ee1f22790765b4ef6a630_0.c 6: Undefined symbol 'int64_t' in function main Error E2188 .sconf_temp\conftest_d18340ea9d0ee1f22790765b4ef6a630_0.c 6: Expression syntax in function main Error E2109 .sconf_temp\conftest_d18340ea9d0ee1f22790765b4ef6a630_0.c 8: Not an allowed type in function main Warning W8008 .sconf_temp\conftest_d18340ea9d0ee1f22790765b4ef6a630_0.c 8: Condition is always false in function main Warning W8066 .sconf_temp\conftest_d18340ea9d0ee1f22790765b4ef6a630_0.c 9: Unreachable code in function main Warning W8070 .sconf_temp\conftest_d18340ea9d0ee1f22790765b4ef6a630_0.c 10: Function should return a value in function main 3 errors in Compile scons: Configure: no

scons: Configure: Checking for C type int64_t... .sconf_temp\conftest_dce8198a36187fbc38d860c3c2d9a861_0.c <-
#include
int main(void) {
if ((int64_t *) 0)
return 0;
if (sizeof (int64_t))
return 0;
}

bcc32 -q -c -o.sconf_temp\conftest_dce8198a36187fbc38d860c3c2d9a861_0.obj .sconf_temp\conftest_dce8198a36187fbc38d860c3c2d9a861_0.c .sconf_temp\conftest_dce8198a36187fbc38d860c3c2d9a861_0.c: Warning W8008 .sconf_temp\conftest_dce8198a36187fbc38d860c3c2d9a861_0.c 7: Condition is always false in function main Warning W8066 .sconf_temp\conftest_dce8198a36187fbc38d860c3c2d9a861_0.c 8: Unreachable code in function main Warning W8008 .sconf_temp\conftest_dce8198a36187fbc38d860c3c2d9a861_0.c 9: Condition is always true in function main bcc32 -q -e.sconf_temp\conftest_dce8198a36187fbc38d860c3c2d9a861_0_124528bc907e7e1290700253baaf7f41.exe .sconf_temp\conftest_dce8198a36187fbc38d860c3c2d9a861_0.obj ws2_32 Error E2194: Could not find file 'ws2_32.cpp' scons: Configure: no

scons: Configure: Checking for C type int64_t... .sconf_temp\conftest_e4a8095471d364d150fce932a39f09e9_0.c <-
#include
int main(void) {
if ((int64_t *) 0)
return 0;
if (sizeof (int64_t))
return 0;
}

bcc32 -q -c -o.sconf_temp\conftest_e4a8095471d364d150fce932a39f09e9_0.obj .sconf_temp\conftest_e4a8095471d364d150fce932a39f09e9_0.c .sconf_temp\conftest_e4a8095471d364d150fce932a39f09e9_0.c: Error E2209 .sconf_temp\conftest_e4a8095471d364d150fce932a39f09e9_0.c 3: Unable to open include file 'unistd.h' Error E2451 .sconf_temp\conftest_e4a8095471d364d150fce932a39f09e9_0.c 7: Undefined symbol 'int64_t' in function main Error E2188 .sconf_temp\conftest_e4a8095471d364d150fce932a39f09e9_0.c 7: Expression syntax in function main Error E2109 .sconf_temp\conftest_e4a8095471d364d150fce932a39f09e9_0.c 9: Not an allowed type in function main Warning W8008 .sconf_temp\conftest_e4a8095471d364d150fce932a39f09e9_0.c 9: Condition is always false in function main Warning W8066 .sconf_temp\conftest_e4a8095471d364d150fce932a39f09e9_0.c 10: Unreachable code in function main Warning W8070 .sconf_temp\conftest_e4a8095471d364d150fce932a39f09e9_0.c 11: Function should return a value in function main 4 errors in Compile scons: Configure: no

scons: Configure: Checking for C type __int64... .sconf_temp\conftest_a14b1ae2327469c24130aa32e0ecfdc0_0.c <-
int main(void) {
if ((__int64 *) 0)
return 0;
if (sizeof (__int64))
return 0;
}

bcc32 -q -c -o.sconf_temp\conftest_a14b1ae2327469c24130aa32e0ecfdc0_0.obj .sconf_temp\conftest_a14b1ae2327469c24130aa32e0ecfdc0_0.c .sconf_temp\conftest_a14b1ae2327469c24130aa32e0ecfdc0_0.c: Warning W8008 .sconf_temp\conftest_a14b1ae2327469c24130aa32e0ecfdc0_0.c 6: Condition is always false in function main Warning W8066 .sconf_temp\conftest_a14b1ae2327469c24130aa32e0ecfdc0_0.c 7: Unreachable code in function main Warning W8008 .sconf_temp\conftest_a14b1ae2327469c24130aa32e0ecfdc0_0.c 8: Condition is always true in function main bcc32 -q -e.sconf_temp\conftest_a14b1ae2327469c24130aa32e0ecfdc0_0_2b876df9796440e744961e630dbb3ef8.exe .sconf_temp\conftest_a14b1ae2327469c24130aa32e0ecfdc0_0.obj ws2_32 Error E2194: Could not find file 'ws2_32.cpp' scons: Configure: no

scons: Configure: Checking for C type long long int... .sconf_temp\conftest_657726be937c71fde3fb3f96c83b2de5_0.c <-
int main(void) {
if ((long long int *) 0)
return 0;
if (sizeof (long long int))
return 0;
}

bcc32 -q -c -o.sconf_temp\conftest_657726be937c71fde3fb3f96c83b2de5_0.obj .sconf_temp\conftest_657726be937c71fde3fb3f96c83b2de5_0.c .sconf_temp\conftest_657726be937c71fde3fb3f96c83b2de5_0.c: Warning W8008 .sconf_temp\conftest_657726be937c71fde3fb3f96c83b2de5_0.c 6: Condition is always false in function main Warning W8066 .sconf_temp\conftest_657726be937c71fde3fb3f96c83b2de5_0.c 7: Unreachable code in function main Warning W8008 .sconf_temp\conftest_657726be937c71fde3fb3f96c83b2de5_0.c 8: Condition is always true in function main bcc32 -q -e.sconf_temp\conftest_657726be937c71fde3fb3f96c83b2de5_0_c3f40c2e0ddae3ba087d9888bc1bfe44.exe .sconf_temp\conftest_657726be937c71fde3fb3f96c83b2de5_0.obj ws2_32 Error E2194: Could not find file 'ws2_32.cpp' scons: Configure: no