| Ferrous Moon http://www.ferrousmoon.com:80/forums/ |
|
| Issues with CrissCross http://www.ferrousmoon.com:80/forums/viewtopic.php?f=45&t=1385 |
Page 1 of 2 |
| Author: | eddieringle [Tue Jun 03, 2008 8:48 pm ] |
| Post subject: | Issues with CrissCross |
Okay, I added the include directories, and tried building the GenPrime example. However, in the header file universal_includes.h, it tries including a build_number.h, which does not exist. I am using 0.7.0, should I fallback to 6? EDIT: Okay, sshed into my linux server and got crisscross on there. I built it and what do you know, there's build_number.h. I have absolutely no clue on how to get it working on my Windows box, using CodeBlocks. (If needed, I have DevCpp ready, and can always install VS.) |
|
| Author: | Tycho [Tue Jun 03, 2008 10:16 pm ] |
| Post subject: | Re: Issues with CrissCross |
You have to build the CrissCross project first. That's why there's a solution file there; it builds dependencies. Building the CrissCross project runs GenerateBuildNumber.exe which creates build_number.h (on Linux, it runs the same program but recompiled for the platform you're on). |
|
| Author: | eddieringle [Wed Jun 04, 2008 2:16 pm ] |
| Post subject: | Re: Issues with CrissCross |
I figured so. I am doing fine with writing programs on my server for now. Any examples for using sockets? I've already looked at the doxygen documentation. |
|
| Author: | Tycho [Wed Jun 04, 2008 2:47 pm ] |
| Post subject: | Re: Issues with CrissCross |
I haven't made any examples for those, no. The best examples I've got for it are closed source, unfortunately (ARC++ uses CrissCross networking). |
|
| Author: | eddieringle [Wed Jun 04, 2008 3:00 pm ] |
| Post subject: | Re: Issues with CrissCross |
Darn. Do I have to create a TCPSocket object and point to it like: socket->Listen();? I tried mimicking what I did with WriteLine but it did not seem to work. |
|
| Author: | Tycho [Thu Jun 05, 2008 1:33 am ] |
| Post subject: | Re: Issues with CrissCross |
Yes, you need to specify what port to listen on though. |
|
| Author: | eddieringle [Sat Jun 07, 2008 11:46 pm ] |
| Post subject: | Re: Issues with CrissCross |
Just tried building on VS2005, here's the errors for CrissCross, the other projects complain about not getting build_number.h. Code: ------ Build started: Project: CrissCross, Configuration: Debug Win32 ------
Generating build number...
The system cannot execute the specified program.
Project : error PRJ0019: A tool returned an error code from "Generating build number..."
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '..\obj\crisscross_vs2005.vcproj\win32\debug\console.sbr': No such file or directory
Build log was saved at "file://C:\Documents and Settings\ERing\My Documents\Dev\CrissCross-0.7.0\obj\CrissCross_vs2005.vcproj\Win32\Debug\BuildLog.htm"
CrissCross - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
|
|
| Author: | Tycho [Sun Jun 08, 2008 12:36 am ] |
| Post subject: | Re: Issues with CrissCross |
Looks like GenerateBuildNumber.exe is not marked executable or is not executable on your system because of some runtime dependency. You can recompile it using the project tools/Build/GenerateBuildNumber_vs2005.vcproj. |
|
| Author: | Tycho [Sun Jun 08, 2008 12:43 am ] |
| Post subject: | Re: Issues with CrissCross |
I just checked the SVN revision logs. Looks like it was after the v0.7.0 release where I started statically linking GenerateBuildNumber.exe to prevent this issue. I'm going to release v0.7.1 shortly, where a number of flaws are fixed. |
|
| Author: | eddieringle [Sun Jun 08, 2008 9:01 am ] |
| Post subject: | Re: Issues with CrissCross |
Cool beans, does this include the issue where SortBenchmark can't copy dataset? Code: 1>------ Build started: Project: SortBenchmark, Configuration: Debug Win32 ------
1>Copying dataset to the target directory
1>The system cannot find the file specified.
1>Project : error PRJ0019: A tool returned an error code from "Copying dataset to the target directory"
1>Build log was saved at "file://E:\Documents and Settings\Eddie\My Documents\Dev\CrissCross-0.7.0\obj\SortBenchmark_vs2005.vcproj\Win32\Debug\BuildLog.htm"
1>SortBenchmark - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
|
|
| Author: | Tycho [Sun Jun 08, 2008 12:07 pm ] |
| Post subject: | Re: Issues with CrissCross |
I just downloaded the v0.7.0 release and wasn't able to reproduce that issue. |
|
| Author: | Tycho [Sun Jun 08, 2008 1:17 pm ] |
| Post subject: | Re: Issues with CrissCross |
CrissCross v0.7.1 has just been made publicly available. You can get it here. |
|
| Author: | eddieringle [Mon Jun 09, 2008 2:46 pm ] |
| Post subject: | Re: Issues with CrissCross |
Compiles fine, thanks. EDIT: Hold on, get these linker error's when trying to compile EmptyProject. Does the CrissCross Project have to be included in the solution? Code: 1>------ Build started: Project: EmptyProject, Configuration: Debug Win32 ------
1>Compiling...
1>header.cpp
1>Compiling...
1>main.cpp
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall CrissCross::IO::Console::Console(bool,bool)" (??0Console@IO@CrissCross@@QAE@_N0@Z) referenced in function "int __cdecl RunApplication(int,char * *)" (?RunApplication@@YAHHPAPAD@Z)
1>LIBCMTD.lib(wincrt0.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>E:\Documents and Settings\Eddie\My Documents\Dev\CrissCross-0.7.1\examples\EmptyProject\/bin/EmptyProject_vs2008.vcproj/Win32/Debug\EmptyProject.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://E:\Documents and Settings\Eddie\My Documents\Dev\CrissCross-0.7.1\examples\EmptyProject\obj\EmptyProject_vs2008.vcproj\Win32\Debug\BuildLog.htm"
1>EmptyProject - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
|
|
| Author: | Tycho [Tue Jun 10, 2008 12:52 am ] |
| Post subject: | Re: Issues with CrissCross |
Quote: Does the CrissCross Project have to be included in the solution?
That's the whole reason I provided a solution file there.You see, there are two ways to make it link: 1) Project dependency when part of a solution (this is what CrissCross uses because it's very manageable). 2) Add it manually to the linker options. I recommend option 1 because it's simpler and you don't have to worry about where the library compiled to. |
|
| Author: | eddieringle [Tue Jun 10, 2008 5:36 am ] |
| Post subject: | Re: Issues with CrissCross |
Yeah, I added the CrissCross project to the solution and configured dependencies. All is good. |
|
| Page 1 of 2 | All times are UTC-05:00 |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|