<div dir="ltr"><div><div><div><div><div><div>Hello,<br><br></div>I recently downloaded olympus, and I'm trying to build it and test tutorial 1 with a text-based interface.<br><br></div>I'm compiling using visual studio 2010 on a 32-bit windows 7 machine. Olympus (using the vs2010 branch from the repository) seems to build successfully, except for the DateTime agent. I converted the VS .rule file for flex and bison into a VS10 .target file, and that seems to generate the source files correctly. However, I'm having linking errors.<br>

<br>I'm hoping that someone who is more familiar with flex and bison than I am can point out what additional changes I need to make.<br>
<br>Cheers,<br>Frank<br><br><br></div>Here is the relevant portion of the build log:<br><br><tt></tt>Project "C:\Projects\OlympusVS10\build\cmake\Olympus.sln" (1) is building "C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj.metaproj" (25) on node 1 (default targets).<br>
<br>Project "C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj.metaproj" (25) is building "C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj" (26) on node 1 (default targets).<br>
<br>InitializeBuildStatus:<br><br>  Touching "DateTime.dir\Release\DateTime.unsuccessfulbuild".<br><br>CustomBuild:<br><br>  All outputs are up-to-date.<br><br>ClCompile:<br><br>  C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /IC:/Projects/OlympusVS10/Libraries/Galaxy/include /IC:/Projects/OlympusVS10/Libraries/Galaxy/contrib/MITRE/utilities /nologo /W3 /WX- /O2 /Ob2 /Oy- /D WIN32 /D _WINDOWS /D NDEBUG /D _CRT_NONSTDC_NO_DEPRECATE /D _CRT_SECURE_NO_WARNINGS /D WIN32 /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"DateTime.dir\Release\\" /Fd"C:/Projects/OlympusVS10/bin/Release/DateTime.pdb" /Gd /TC /analyze- /errorReport:queue ..\..\..\..\Agents\DateTime\numparse.tab.c  /Zm1000 <br>
<br>  numparse.tab.c<br><br>bison.simple(377): warning C4013: 'yylex' undefined; assuming extern returning int [C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj]<br><br>Link:<br><br>  C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Projects\OlympusVS10\bin\Release\DateTime.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib ..\..\..\..\bin\Release\libGalaxy.lib ws2_32.lib /MANIFEST /ManifestFile:"DateTime.dir\Release\DateTime.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /PDB:"C:/Projects/OlympusVS10/bin/Release/DateTime.pdb" /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Projects/OlympusVS10/bin/Release/DateTime.lib" /MACHINE:X86 DateTime.dir\Release\dates.obj<br>
<br>  DateTime.dir\Release\gal_dt.obj<br><br>  DateTime.dir\Release\numparse.tab.obj<br><br>  DateTime.dir\Release\parse_date_time.obj<br><br>  DateTime.dir\Release\parse_int.obj<br><br>  DateTime.dir\Release\parse_net.obj<br>
<br>  DateTime.dir\Release\parse_time_range.obj<br><br>  DateTime.dir\Release\log.obj  /machine:X86 <br><br>gal_dt.obj : error LNK2019: unresolved external symbol _parse_number referenced in function _ParseInt [C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj]<br>
<br>parse_date_time.obj : error LNK2001: unresolved external symbol _parse_number [C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj]<br><br>parse_int.obj : error LNK2001: unresolved external symbol _parse_number [C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj]<br>
<br>numparse.tab.obj : error LNK2019: unresolved external symbol _yylex referenced in function _yyparse [C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj]<br><br>C:\Projects\OlympusVS10\bin\Release\DateTime.exe : fatal error LNK1120: 2 unresolved externals [C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj]<br>
<br>Done Building Project "C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj" (default targets) -- FAILED.<br><br>Done Building Project "C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj.metaproj" (default targets) -- FAILED.<br>
<br></div><br></div></div></div>