[Olympus developers 391]: compiling DateTime agent in VS10

Frank Broz frnkbroz at gmail.com
Wed Apr 3 12:19:49 EDT 2013


Hello,

I recently downloaded olympus, and I'm trying to build it and test tutorial
1 with a text-based interface.

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.

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.

Cheers,
Frank


Here is the relevant portion of the build log:

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).

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).

InitializeBuildStatus:

  Touching "DateTime.dir\Release\DateTime.unsuccessfulbuild".

CustomBuild:

  All outputs are up-to-date.

ClCompile:

  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

  numparse.tab.c

bison.simple(377): warning C4013: 'yylex' undefined; assuming extern
returning int
[C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj]

Link:

  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

  DateTime.dir\Release\gal_dt.obj

  DateTime.dir\Release\numparse.tab.obj

  DateTime.dir\Release\parse_date_time.obj

  DateTime.dir\Release\parse_int.obj

  DateTime.dir\Release\parse_net.obj

  DateTime.dir\Release\parse_time_range.obj

  DateTime.dir\Release\log.obj  /machine:X86

gal_dt.obj : error LNK2019: unresolved external symbol _parse_number
referenced in function _ParseInt
[C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj]

parse_date_time.obj : error LNK2001: unresolved external symbol
_parse_number
[C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj]

parse_int.obj : error LNK2001: unresolved external symbol _parse_number
[C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj]

numparse.tab.obj : error LNK2019: unresolved external symbol _yylex
referenced in function _yyparse
[C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj]

C:\Projects\OlympusVS10\bin\Release\DateTime.exe : fatal error LNK1120: 2
unresolved externals
[C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj]

Done Building Project
"C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj"
(default targets) -- FAILED.

Done Building Project
"C:\Projects\OlympusVS10\build\cmake\Agents\DateTime\DateTime.vcxproj.metaproj"
(default targets) -- FAILED.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.srv.cs.cmu.edu/pipermail/olympus-developers/attachments/20130403/a96c1dbb/attachment.html>


More information about the Olympus-developers mailing list