Windows compilation problem

419 views
Skip to first unread message

jief...@gmail.com

unread,
Apr 2, 2014, 10:58:28 PM4/2/14
to fix8-s...@googlegroups.com
Hi,

I have followed the Windows Build instructions at

https://fix8engine.atlassian.net/wiki/display/FX/Building+and+running+on+Windows

However when I tried to build the solution and more specifically, the "compiler" project (using Visual Studio 2012), I encounter a chain of errors, as shown at the bottom part of the message. Just wondering does the error looks familiar to you guys and if anyone has any idea on what could have cause these errors. Really appreciate it if someone can point me in the right direction. Thank you.

Error 6 error C2039: 'memchr' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd 546 1 compiler
Error 2 error C2039: 'memcmp' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd 517 1 compiler
Error 8 error C2039: 'memset' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd 559 1 compiler
Error 4 error C2039: 'strlen' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd 523 1 compiler
Error 7 error C3861: 'memchr': identifier not found c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd 546 1 compiler
Error 3 error C3861: 'memcmp': identifier not found c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd 517 1 compiler
Error 9 error C3861: 'memset': identifier not found c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd 559 1 compiler
Error 5 error C3861: 'strlen': identifier not found c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd 523 1 compiler
Error 1 error MSB3073: The command "copy C:\Users\Genk Capital\Desktop\fix8-1.0.0\msvc\\f8config_msvc.h C:\Users\Genk Capital\Desktop\fix8-1.0.0\msvc\\..\include\f8config.h
:VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 124 5 runtime
Error 92 error C1903: unable to recover from previous error(s); stopping compilation c:\program files (x86)\microsoft visual studio 11.0\vc\include\string 190 1 compiler
Error 40 error C2059: syntax error : '<' c:\program files (x86)\microsoft visual studio 11.0\vc\include\string 21 1 compiler
Error 46 error C2086: 'int std::basic_string' : redefinition c:\program files (x86)\microsoft visual studio 11.0\vc\include\string 49 1 compiler
Error 84 error C2143: syntax error : missing ',' before '<' c:\program files (x86)\microsoft visual studio 11.0\vc\include\string 166 1 compiler
Error 41 error C2143: syntax error : missing ';' before '{' c:\program files (x86)\microsoft visual studio 11.0\vc\include\string 38 1 compiler
Error 36 error C2143: syntax error : missing ';' before '<' c:\program files (x86)\microsoft visual studio 11.0\vc\include\string 21 1 compiler
Error 37 error C2433: 'basic_string' : 'inline' not permitted on data declarations c:\program files (x86)\microsoft visual studio 11.0\vc\include\string 21 1 compiler
Error 42 error C2447: '{' : missing function header (old-style formal list?) c:\program files (x86)\microsoft visual studio 11.0\vc\include\string 38 1 compiler
Error 85 error C2803: 'operator ==' must have at least one formal parameter of class type c:\program files (x86)\microsoft visual studio 11.0\vc\include\string 170 1 compiler
Error 86 error C2805: binary 'operator ==' has too few parameters c:\program files (x86)\microsoft visual studio 11.0\vc\include\string 170 1 compiler
Error 39 error C2988: unrecognizable template declaration/definition c:\program files (x86)\microsoft visual studio 11.0\vc\include\string 21 1 compiler
Error 38 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\microsoft visual studio 11.0\vc\include\string 21 1 compiler
Error 30 error C2039: 'memchr' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility 3193 1 compiler
Error 22 error C2039: 'memcmp' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility 2964 1 compiler
Error 10 error C2039: 'memset' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility 2651 1 compiler
Error 31 error C3861: 'memchr': identifier not found c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility 3193 1 compiler
Error 23 error C3861: 'memcmp': identifier not found c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility 2964 1 compiler
Error 11 error C3861: 'memset': identifier not found c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility 2651 1 compiler

Sergey Sedreev

unread,
Apr 3, 2014, 2:12:25 AM4/3/14
to fix8-s...@googlegroups.com, jief...@gmail.com
Hi,

I've tested the build under VS2013. Unfortunately, I don't have VS2012 to reproduce the build error.
Could you please try to update to most recent dev branch of fix8 and send me or attach here full build log?

Sergey

четверг, 3 апреля 2014 г., 6:58:28 UTC+4 пользователь jief...@gmail.com написал:

Jiefeng Koh

unread,
Apr 4, 2014, 12:07:02 AM4/4/14
to Sergey Sedreev, fix8-s...@googlegroups.com
Hi Sergey,

I have updated to the latest branch and compiled using VS2013. Attached are my build log. There are 2  "The system cannot find the path specified." But I am not sure what "path" or files it is talking about. I have tried edit the root.props to no avail. Can you enlighten me on this? Are there more settings I need to set?

Thanks!

1>------ Build started: Project: f8lib_prebuild, Configuration: Release Win32 ------
1>  The system cannot find the path specified.
1>  C:\Dependency\poco-1.4.6p2\bin\PocoFoundation.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoFoundationd.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoNet.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoNetd.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoUtil.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoUtild.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoXML.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoXMLd.dll
1>          8 file(s) copied.
1>  The system cannot find the path specified.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "C:\fix8-master\msvc\\f8lib_prebuild.cmd build Release Win32 C:\fix8-master\msvc\\Win32\bin\Release\" exited with code 1.


build log.rtf

Sergey Sedreev

unread,
Apr 4, 2014, 2:13:34 AM4/4/14
to fix8-s...@googlegroups.com, Sergey Sedreev, jief...@gmail.com
Jiefeng,

I've looked into the attached log. Seems the first problem is that cmd-line scripts in solution do not like space in path. Could you please try to build fix8 solution at some path without spaces? 
Also, there are dependencies problem. That could be connected to each other. Please, try to rebuild fix8 solution at path w/o spaces and attach build log.

Sergey
PS. I'll create a defect in JIRA to fix spaces problem.

пятница, 4 апреля 2014 г., 8:07:02 UTC+4 пользователь Jiefeng Koh написал:

Jiefeng Koh

unread,
Apr 4, 2014, 2:22:39 AM4/4/14
to Sergey Sedreev, fix8-s...@googlegroups.com
Hi Sergey,

Thanks for the fast reply. Sorry, I attached the wrong build log. I have also noticed the space problem and used "C:\fix8-master" instead of "C:\Users\Genk Capital\Desktop\fix8-master". This is the new build log.

Regards,
Jiefeng
Buildlog.txt

Sergey Sedreev

unread,
Apr 4, 2014, 4:00:49 AM4/4/14
to fix8-s...@googlegroups.com, Sergey Sedreev, jief...@gmail.com
Jiefeng,

Please, attach your f8config.h and f8config_msvc.h. Also fix8.vcxproj & root.props would be useful.

Sergey

пятница, 4 апреля 2014 г., 10:22:39 UTC+4 пользователь Jiefeng Koh написал:

Jiefeng Koh

unread,
Apr 4, 2014, 5:04:59 AM4/4/14
to Sergey Sedreev, fix8-s...@googlegroups.com
Hi Sergey,

Here they are. Thanks!

Regards,
Jiefeng
f8config_msvc.h
f8config.h
root.props
fix8.vcxproj

Sergey Sedreev

unread,
Apr 4, 2014, 6:38:31 AM4/4/14
to fix8-s...@googlegroups.com, Sergey Sedreev, jief...@gmail.com
Jiefeng,

Files look good. Do you have TBB/GeOpt installed?
According to build log, neither TBB nor GetOpt were found:

1>------ Build started: Project: f8lib_prebuild, Configuration: Release Win32 ------
*** this is for GetOpt
1>  The system cannot find the path specified.
***
1>  C:\Dependency\poco-1.4.6p2\bin\PocoFoundation.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoFoundationd.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoNet.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoNetd.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoUtil.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoUtild.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoXML.dll
1>  C:\Dependency\poco-1.4.6p2\bin\PocoXMLd.dll
1>          8 file(s) copied.
*** This is for TBB
1>  The system cannot find the path specified.
***

Just have a look to copy script at f8lib_prebuild/f8lib_prebuil.cmd
Sergey

пятница, 4 апреля 2014 г., 13:04:59 UTC+4 пользователь Jiefeng Koh написал:

Jiefeng Koh

unread,
Apr 6, 2014, 9:54:22 PM4/6/14
to Sergey Sedreev, fix8-s...@googlegroups.com
Hi Segey,

I have got the getOpt path fixed. Somehow fblib_prebuild can't find the path to the TBB folder. However I believe I have disabled the dependency to TBB. I have also downloaded the latest 1.1.0 version and compile. Attached is my build log. Can you help me take a look to narrow down the possible causes for the "'memcmp' : is not a member of '`global namespace''" errors? Is it because I compiled one of the dependent dlls wrongly?

Regards,
Jiefeng

 


Buildlog.txt

Sergey Sedreev

unread,
Apr 7, 2014, 1:21:01 AM4/7/14
to fix8-s...@googlegroups.com, Sergey Sedreev, jief...@gmail.com
Hi Jiefeng,

I've tried to compile w/o TBB - the build failed on FF includes. The error messages were not quite the same as you given, but still failed. I've created a defect FX-233 for that.
Please, try to build fix8 in default configuration, including TBB for now. As soon as FX-233 fixed, you'll be able to build fix8 with FF instead of TBB.

Sergey


понедельник, 7 апреля 2014 г., 5:54:22 UTC+4 пользователь Jiefeng Koh написал:

Sergey Sedreev

unread,
Apr 7, 2014, 1:23:03 AM4/7/14
to fix8-s...@googlegroups.com, Sergey Sedreev, jief...@gmail.com
One more note...
I'm using Poco from develop branch. The branch has VS2013 solution. How did you build Poco in VS2013?
Sergey

понедельник, 7 апреля 2014 г., 9:21:01 UTC+4 пользователь Sergey Sedreev написал:

Jiefeng Koh

unread,
Apr 8, 2014, 9:27:22 PM4/8/14
to Sergey Sedreev, fix8-s...@googlegroups.com
Hi Sergey,

Thank you very much for staying with me so far. I have finally resolved the problem of "not a global namespace" errors --- by building it on another computer. Apparently the VC installation on my previous computer is broken, and I have no idea how to resolve it. 

However there are other errors now, which should be easier to solve. 

First, how to I check the %(additionalIncludeDirectory) environment variable in the Additional Include Directory field of the project? Apparently from the errorList, the compiler cannot find "ff" folder and the "poco" folder. I can probably add in the poco folder manually, but what and where is the "FF" folder? Is it a TBB component?

Btw I have also upgraded to used Poco1.5.2, but there is no VS2013 solution. So I simply use the VS2013 compiler to compile the VS110 solutions. Hopefully there won't be a problem.

Regards,
Jiefeng

buildlog.txt
errorList.txt

Jiefeng Koh

unread,
Apr 8, 2014, 9:49:09 PM4/8/14
to Sergey Sedreev, fix8-s...@googlegroups.com
Hi Sergey,

I added the $(solution)/../include/fix8 to the include directories and resolved the ff folder errors. I will let you know if I encounter problems I can't solve again. Thank!


Regards,
Jiefeng

Sergey Sedreev

unread,
Apr 9, 2014, 2:04:08 AM4/9/14
to fix8-s...@googlegroups.com, Sergey Sedreev, jief...@gmail.com
Jiefeng,

Great. Please, let me know if there are build errors. I use TBB. And I've created a defect to check FF compilation (w/o TBB).
Also you are welcome to create a pull request for the fix8 repo to fix any defects.

Sergey

среда, 9 апреля 2014 г., 5:49:09 UTC+4 пользователь Jiefeng Koh написал:

Sergey Sedreev

unread,
Apr 15, 2014, 2:12:54 AM4/15/14
to Jiefeng Koh, David L. Dight
Jiefeng,

Yes, that is known problem. It is about using Unix-bash commands in config files. Just replace them by constant strings (i.e. time shift, log file names, etc).
Also Poco for Windows doesn't like "0.0.0.0" address - please use "127.0.0.1" instead.

Sergey

PS: This is a link to a defect: https://fix8engine.atlassian.net/browse/FX-199



On 04/15/2014 09:53 AM, Jiefeng Koh wrote:
Hi Sergey,

I encountered the following error while running the f8test.exe program.

C:\fix8-1.1.0_new\msvc\Win32\bin\Debug>f8testd.exe -s
'now' is not recognized as an internal or external command,
operable program or batch file.
'now' is not recognized as an internal or external command,
operable program or batch file.
exception: Invalid argument

It gives a "exception: Invalid argument", which doesn't have very much info for me to work on. Previously when I run there isn't this error. Now,even after I use the original code and xml files and compile them all over again this error keep cropping up, on both release and debug build. I wonder if you have any idea / clues of what can cause this problem?

Thanks,
Jiefeng


On Thu, Apr 10, 2014 at 11:28 AM, Jiefeng Koh <jief...@gmail.com> wrote:

Hi Sergey,

Sorry for the newbie question in my last email. I guess the f8test project is what I am looking for. Please ignore my last email.

Regards,
Jiefeng


---------- Forwarded message ----------
From: Jiefeng Koh <jief...@gmail.com>
Date: Thu, Apr 10, 2014 at 10:09 AM
Subject: Re: Windows compilation problem
To: Sergey Sedreev <ssed...@gmail.com>


Hi Sergey,

I am now also using TBB and managed to compile the compiler and generate the hpp and cpp files successfully. (I still can't get it to work without TBB).  You have already helped me so much, I am not sure whether is it too much to ask for, but I will really appreciate it if you can send some examples (server, client) in VS projects / solution format. This will greatly speed up my learning curve.

Thanks again!

Regards,
Jiefeng
Reply all
Reply to author
Forward
0 new messages