<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Alin,<div><br><div>Thank you for your patience. I now have this set via</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>set( CMAKE_EXE_LINKER_FLAGS "-mbig-endian" )
</div><div><br></div><div>However, this does not seem to affect the reading of the big-endian binary file (which is in read in fortran). Perhaps I am still not setting it properly?</div><div><br></div><div>James</div><div><br></div><div><br><div><div>On Mar 31, 2009, at 1:30 PM, Alin M Elena wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="font-family: 'Sans Serif'; font-size: 10pt; font-weight: 400; font-style: normal; ">man g++<br>add_definition is a preprocessor directive not linking flag<br><div style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; white-space: pre-wrap; "><br></div>Alin<br>--<span class="Apple-converted-space"> </span><br>______________________________________________________________________<br>"If the Universities will not study useless subjects, who will?"<br>G. F. FitzGerald, Nature, 45/46, 392 (1892)<br>______________________________________________________________________<br>Mr Alin M ELENA<br>Irish Centre for High-End Computing --<span class="Apple-converted-space"> </span><a href="http://www.ichec.ie">www.ichec.ie</a><br>The Design Tower, Trinity Technology & Enterprise Campus<br>Grand Canal Quay, Dublin 2, Ireland<br>Tel: +353 (0) 1 5241608 ext 29<br>Fax: +353 (0) 1 7645845<br><a href="http://alin.elenaworld.net">http://alin.elenaworld.net</a><br><a href="mailto:alin.elena@ichec.ie">alin.elena@ichec.ie</a><br><a href="mailto:alinm.elena@gmail.com">alinm.elena@gmail.com</a><br>______________________________________________________________________<br>On Tuesday 31 March 2009 17:27:39 you wrote:<br>> > Should not the flag be passed to the linker? So in this case the<br>> > linker flags are read from the c++ compiler flags?<br>><br>> I tried adding<br>> add_definitions( ${CMAKE_Fortran_FLAGS} )<br>> But the g++ linker complained about an unrecognized option (the -<br>> fconvert=big-endian option).<br>><br>> When linking, I pull in the gfortran library,<br>> target_link_libraries( readx gfortran )<br>><br>> When creating the fortran object files the appropriate flags are<br>> passed, but the g++ compiler has no notion of endian-ness...<br>><br>> Any other ideas?<br><div style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; white-space: pre-wrap; "><br></div></div></span><br class="Apple-interchange-newline"></blockquote></div><br></div></div></body></html>