Hi, <BR> <BR>This mail is in response to <<A href='javascript:addSender("Oly Mo <o_morad3@yahoo.fr>")'><FONT color=#3a2eb5>Oly Mo <o_morad3@yahoo.fr></FONT></A>:<BR> <BR>Probably this might help:<BR>I implemented GAlib247 in Visual C++ 2008 Express Edition, I followed an exellent procedure suggested by a guy on his webpage (Darwin Slattery):<BR> <BR><STRONG>Implementing the library:</STRONG><BR>1. Change the .C files to .cpp from the library galib and the examples.<BR>2. In Visual C++ create a new project, on Project types select Empty project.<BR>3. Add on the Headers Folder all the *.h files from the ga folder.<BR>4. Add to the Source Folder all the *.cpp files from the ga folder.<BR>5. Now, you will have to replace the *.C files that are actually written on the code with the extension *.cpp. The files are: ga/gatree.c ; ga/gaallele.c ; ga/galist.c ; ga/gatreegenome.c ; ga/ga1darraygenome.c ; ga/ga3darraygenome.c ; ga/ga2darraygenome.c ; ga/galistgenome.c.<BR>6. Select Projects --> Properties, in All configurations and set this:<BR>
<DT>General</DT>
<DD>Configuration Type = Static Library (.lib)</DD>
<DD>Common Language Runtime Support = No Common Language Runtime Support</DD>
<DT>C/C++ > General</DT>
<DD>Additional Include Directories = ..\..\..</DD>
<DT>C/C++ > Preprocessor</DT>
<DD>Preprocessor Definitions = _CRT_SECURE_NO_DEPRECATE</DD>
<DT>Precompiled Headers</DT>
<DD>Create/Use Precompiled Headers = Not Using Precompiled Headers</DD>
<DT>Advanced</DT>
<DD>Compile As = Compile As C++ Code (/TP)</DD><BR>7. Build the library.<BR> <BR>Implementing an example:<BR> <BR>8. Add a project as a Win32, before finishing creating the project, there will be a window to set the project, clic next and then check Empty Project and uncheck Precompiler header check box.<BR>9. Select the properties of project in which the example is an set it as this:<BR>
<DT>General</DT>
<DD>Configuration Type = Application (.exe)</DD>
<DD>Common Language Runtime Support = No Common Language Runtime Support</DD>
<DT>C/C++ > General</DT>
<DD>Additional Include Directories = ..\..\..</DD>
<DT>C/C++ > Code Generation</DT>
<DD>Runtime Library = Multi-threaded (/MT)</DD>
<DT>C/C++ > Preprocessor</DT>
<DD>Preprocessor Definitions = _CRT_SECURE_NO_DEPRECATE</DD>
<DT>Precompiled Headers</DT>
<DD>Create/Use Precompiled Headers = Not Using Precompiled Headers</DD>
<DT>Advanced</DT>
<DD>Compile As = Compile As C++ Code (/TP)</DD><BR>
<P>10. Selecting the project of the example select project dependencies from the project menu, and check the galib check box.</P>
<P>11. Build it.</P>
<P>12. You might get some errors, you may solving them by:</P>
<P>Changing to Multi-threaded Debug (/MTd)) in project properties --> Code generation --> Runtime library type. (make sure to change both, the library and the example to the same type).</P>
<P>In the example properties --> Linker --> Input set --> Ignore specific library write: MSVCRTD.lib;msvcprtd.lib</P>
<P>I wrote it step by step as I don't really know what may have caused your error when compiling, I have just implemented Example 21 from the library and it worked.</P>
<P>Regards</P>
<P>Diego De los Rios</P>
<P> </P>
<br>
AVISO LEGAL: El presente correo electronico no representa la opinion o el consentimiento oficial de la PONTIFICIA UNIVERSIDAD JAVERIANA. Este mensaje es confidencial y puede contener informacion privilegiada la cual no puede ser usada ni divulgada a personas distintas de su destinatario. Esta prohibida la retencion, grabacion, utilizacion, aprovechamiento o divulgacion con cualquier proposito. Si por error recibe este mensaje, por favor destruya su contenido y avise a su remitente.<br>En este aviso legal se omiten intencionalmente las tildes.<br><br>Este mensaje ha sido revisado por un sistema antivirus, por lo que su contenido esta libre de virus.<br>This e-mail has been scanned by an antivirus system, so its contents is virus free.<br>