On May 8, 10:00 pm, Cactus <rieman...@gmail.com> wrote: > On May 8, 9:39 pm, "jason" <ja...@njkfrudils.plus.com> wrote: > > > > > > > Thanks , t.istream.cc t-ostream.cc and t-locale.cc fail to compile still , I > > suppose I have to link in the exe's with the system dll that contain > > iostream or whatever its called > > > testing misc_t-scanf.exe > > t-assign.cc > > t-binary.cc > > t-cast.cc > > t-constr.cc > > t-headers.cc > > t-istream.cc > > t-istream.obj : error LNK2019: unresolved external symbol > > "__declspec(dllimport) > > class std::basic_istream<char,struct std::char_traits<char> > & __cdecl > > operato > > r>>(class std::basic_istream<char,struct std::char_traits<char> > &,struct > > __mpz > > _struct *)" > > (__imp_??5@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@std@@AEAV01 > > @PEAU__mpz_struct@@@Z) referenced in function "void __cdecl check_mpz(void)" > > (?c > > heck_mpz@@YAXXZ) > > t-istream.obj : error LNK2019: unresolved external symbol > > "__declspec(dllimport) > > class std::basic_istream<char,struct std::char_traits<char> > & __cdecl > > operato > > r>>(class std::basic_istream<char,struct std::char_traits<char> > &,struct > > __mpq > > _struct *)" > > (__imp_??5@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@std@@AEAV01 > > @PEAU__mpq_struct@@@Z) referenced in function "void __cdecl check_mpq(void)" > > (?c > > heck_mpq@@YAXXZ) > > t-istream.obj : error LNK2019: unresolved external symbol > > "__declspec(dllimport) > > class std::basic_istream<char,struct std::char_traits<char> > & __cdecl > > operato > > r>>(class std::basic_istream<char,struct std::char_traits<char> > &,struct > > __mpf > > _struct *)" > > (__imp_??5@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@std@@AEAV01 > > @PEAU__mpf_struct@@@Z) referenced in function "void __cdecl check_mpf(void)" > > (?c > > heck_mpf@@YAXXZ) > > t-istream.exe : fatal error LNK1120: 3 unresolved externals > > t-locale.cc > > t-locale.obj : error LNK2019: unresolved external symbol > > "__declspec(dllimport) > > class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl > > operator > > <<(class std::basic_ostream<char,struct std::char_traits<char> > &,struct > > __mpf_ > > struct const *)" > > (__imp_??6@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@A > > EAV01@PEBU__mpf_struct@@@Z) referenced in function "int __cdecl > > replacement_work > > s(void)" (?replacement_works@@YAHXZ) > > t-locale.obj : error LNK2019: unresolved external symbol > > "__declspec(dllimport) > > class std::basic_istream<char,struct std::char_traits<char> > & __cdecl > > operator>>(class std::basic_istream<char,struct std::char_traits<char> > > > &,struct > > >>__mpf_ > > > struct *)" > > (__imp_??5@YAAEAV?$basic_istream@DU?$char_traits@D@std@@@std@@AEAV01@ > > PEAU__mpf_struct@@@Z) referenced in function "void __cdecl > > check_input(void)" (? > > check_input@@YAXXZ) > > t-locale.exe : fatal error LNK1120: 2 unresolved externals > > t-misc.cc > > t-ops.cc > > t-ostream.cc > > t-ostream.obj : error LNK2019: unresolved external symbol > > "__declspec(dllimport) > > class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl > > operato > > r<<(class std::basic_ostream<char,struct std::char_traits<char> > &,struct > > __mpz > > _struct const *)" > > (__imp_??6@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ > > AEAV01@PEBU__mpz_struct@@@Z) referenced in function "void __cdecl > > check_mpz(void > > )" (?check_mpz@@YAXXZ) > > t-ostream.obj : error LNK2019: unresolved external symbol > > "__declspec(dllimport) > > class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl > > operato > > r<<(class std::basic_ostream<char,struct std::char_traits<char> > &,struct > > __mpq > > _struct const *)" > > (__imp_??6@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ > > AEAV01@PEBU__mpq_struct@@@Z) referenced in function "void __cdecl > > check_mpq(void > > )" (?check_mpq@@YAXXZ) > > t-ostream.obj : error LNK2019: unresolved external symbol > > "__declspec(dllimport) > > class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl > > operato > > r<<(class std::basic_ostream<char,struct std::char_traits<char> > &,struct > > __mpf > > _struct const *)" > > (__imp_??6@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ > > AEAV01@PEBU__mpf_struct@@@Z) referenced in function "void __cdecl > > check_mpf(void > > )" (?check_mpf@@YAXXZ) > > t-ostream.exe : fatal error LNK1120: 3 unresolved externals > > t-prec.cc > > t-rand.cc > > t-ternary.cc > > t-unary.cc > > testing cxx_t-assign.exe > > testing cxx_t-binary.exe > > testing cxx_t-cast.exe > > testing cxx_t-constr.exe > > testing cxx_t-headers.exe > > testing cxx_t-misc.exe > > testing cxx_t-ops.exe > > testing cxx_t-prec.exe > > testing cxx_t-rand.exe > > testing cxx_t-ternary.exe > > testing cxx_t-unary.exe > > > and try.exe fails with > > > try.c > > ..\..\..\tests\devel\try.c(138) : warning C4273: '__sys_nerr' : inconsistent > > dll > > linkage > > c:\Program Files (x86)\Microsoft Visual Studio > > 9.0\VC\INCLUDE\stdlib.h(2 > > 84) : see previous definition of '__sys_nerr' > > ..\..\..\tests\devel\try.c(148) : warning C4273: 'strerror' : inconsistent > > dll l > > inkage > > c:\Program Files (x86)\Microsoft Visual Studio > > 9.0\VC\INCLUDE\string.h(1 > > 26) : see previous definition of 'strerror' > > Creating library try.lib and object try.exp > > try.obj : error LNK2001: unresolved external symbol __gmpn_mod_34lsub1 > > try.obj : error LNK2019: unresolved external symbol __gmpn_kara_sqr_n > > referenced > > in function mpn_kara_sqr_n_fun > > try.obj : error LNK2019: unresolved external symbol __gmpn_toom3_sqr_n > > reference > > d in function mpn_toom3_sqr_n_fun > > try.obj : error LNK2019: unresolved external symbol __gmpn_toom4_mul_n > > reference > > d in function mpn_toom4_mul_n_fun > > try.obj : error LNK2019: unresolved external symbol __gmpn_toom4_sqr_n > > reference > > d in function mpn_toom4_sqr_n_fun > > try.obj : error LNK2019: unresolved external symbol __gmpn_toom8h_mul > > referenced > > in function mpn_toom8h_mul_fun > > try.obj : error LNK2019: unresolved external symbol __gmpn_toom8_sqr_n > > reference > > d in function mpn_toom8_sqr_n_fun > > try.exe : fatal error LNK1120: 7 unresolved externals > > > I havent adapted speed or tune yet to the dll build > > > Thanks > > Jason > > Is the compiler being set to compile C++ code? > > As far as I know the iostream stuff is catered for in the standard run > time libraries. > > Brian
The complaints about macro redefinitions are caused by the two files tdiv_q.c and dc_divappr_q_n.c including system include files after our own include files. I can't see any reason for doing it this way so I think we should chasnge this to the more usual order for includes. The shift warning in inp_raw.c seems harmless since the undefined behaviour won't be invoked (unless I am missing something). Brian -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To post to this group, send email to mpir-devel@googlegroups.com. To unsubscribe from this group, send email to mpir-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/mpir-devel?hl=en.