<html>Hi,<br><br>I have problems. Can you helpe-me!<br><br>I did one simple C++ program, and compile and link w/G++, see.<br><br>------------------------------------------------------------------------------------------------------------------------------------------<br>-bash-3.00# more main.cpp<br>#include <iostream><br><br>int main()<br>{<br> std::cout << "Test" << std::endl;<br><br> return 0;<br>}<br><br><br>-bash-3.00# g++ -g main.cpp -o main<br>-bash-3.00# ./main<br>Test<br>-bash-3.00#<br>------------------------------------------------------------------------------------------------------------------------------------------<br><br>Then I did <br>-bash-3.00# make distclean<br>-bash-3.00# ./configure CC=gcc CXX=g++ --disable-f77 --disable-fc --prefix=/MPICH/mpich2-install/ 2>&1 | tee c.txt<br>...<br>config.status: executing default-3 commands<br>Configuration completed.<br>-bash-3.00# make 2>&1 | tee m.txt<br>...<br>make: ** [all-redirect] Erro 2<br>-bash-3.00#<br><br> In configuration pahse all appers to be Ok now, but make return error...<br><br>Any Idea?<br><br>Thaks !!!!<br><br><br><br><div><font face="Verdana" size="2" color="#0000ff"></font> </div>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b> Anthony Chan [mailto:chan@mcs.anl.gov]<br><b>Sent:</b> Tuesday, November 1, 2011 02:00 PM<br><b>To:</b> mpich-discuss@mcs.anl.gov<br><b>Subject:</b> Re: [mpich-discuss] Fwd: configure: error: unable to determine matching C type for C++ bool<br><br></font>
Use g++ to compile/link a simple program. Make sure it runs.
If you still get the linker error of libstdc++.so.6, try
setting LD_LIBRARY_PATH to point to /usr/sfw/lib. If that works,
set LD_LIBRARY_PATH in your environment and rerun configure again.
Since you are doing an inpath build, be sure to do "make distclean"
before runing configure again.
A.Chan
----- Original Message -----
> Hi,
> My libstdc++.so.6 is in /usr/sfw/lib
>
> -bash-3.00# ls /usr/sfw/lib/libstdc++.so*
> /usr/sfw/lib/libstdc++.so /usr/sfw/lib/libstdc++.so.6.0.3
> /usr/sfw/lib/libstdc++.so.6
> -bash-3.00#
>
> How to I tell this to MPI configurator? Have any way?
>
> Thanks
>
>
> -----Original Message-----
> From: Anthony Chan [mailto:chan@mcs.anl.gov]
> Sent: Tuesday, November 1, 2011 12:42 PM
> To: mpich-discuss@mcs.anl.gov
> Subject: Re: [mpich-discuss] Fwd: configure: error: unable to
> determine matching C type for C++ bool
>
> Your g++ does not work either, same error as before. It is
> possibleyour c++ is just g++. If you don't need C++ support, you could
> disableit by adding --disable-cxx to your configure command. If you do
> need C++support, you need to find out why libstdc++.so.6 isn't
> there...configure:40496: g++ -o conftest -O2
> -I/MPICH/Source/mpich2-1.4.1p1/src/mpl/include
> -I/MPICH/Source/mpich2-1.4.1p1/src/mpl/include
> -I/MPICH/Source/mpich2-1.4.1p1/src/openpa/src
> -I/MPICH/Source/mpich2-1.4.1p1/src/openpa/src conftest.cpp
> >&5configure:40500: $? = 0configure:40506: ./conftestld.so.1:
> conftest: fatal: libstdc++.so.6: open failed: No such file or
> directory./configure: line 40508: 2921 Killed
> ./conftest$ac_exeextconfigure:40510: $? = 137configure: program exited
> with status 137A.Chan----- Original Message -----> Sorry again,> >
> Follows...> > -----Original Message-----> From: Anthony Chan
> [mailto:chan@mcs.anl.gov]> Sent: Tuesday, November 1, 2011 11:59 AM>
> To: mpich-discuss@mcs.anl.gov> Subject: Re: [mpich-discuss] Fwd:
> configure: error: unable to> determine matching C type for C++ bool> >
> ----- Original Message -----> > -bash-3.00# ./configure CC=gcc
> CXX=g++> --disable-f77 --disable-fc> --prefix=/MPICH/mpich2-install/
> 2>&1 | tee> c.txt> > This is correct?> > Dont work :0(You need to send
> us your> c.txt and config.log to show what went>
> wrong.A.Chan_______________________________________________mpich-discuss>
> mailing list mpich-discuss@mcs.anl.govTo manage subscription options>
> or>
> unsubscribe:https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss>
> > _______________________________________________> mpich-discuss
> mailing list mpich-discuss@mcs.anl.gov> To manage subscription options
> or unsubscribe:>
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss_______________________________________________mpich-discuss
> mailing list mpich-discuss@mcs.anl.govTo manage subscription options
> or
> unsubscribe:https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
> _______________________________________________
> mpich-discuss mailing list mpich-discuss@mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
_______________________________________________
mpich-discuss mailing list mpich-discuss@mcs.anl.gov
To manage subscription options or unsubscribe:
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
</blockquote></html>