certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [certi-dev] Building Certi on Windows from CVS Head


From: Jean-Philippe Lebel
Subject: Re: [certi-dev] Building Certi on Windows from CVS Head
Date: Fri, 09 Sep 2011 10:10:43 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2

Good morning!

Ok, now I'm able to fully compile Certi but I get some linker errors

1 - file certiCheckHostAndIP.c, includes file netdb.h (not defined on windows). I suggest something like in socket.hh

#ifdef _WIN32
# include <winsock2.h>
# include <Ws2tcpip.h>
typedef unsigned __int32  uint32_t;
typedef unsigned __int8   uint8_t;
#else
#include <stdio.h>
#include <netdb.h>
#include <unistd.h>
#include <stdlib.h>
#include <rpc/rpc.h>
typedef int SOCKET;
#endif

Function get_myaddress is undefined on windows. I've found not workaround. I don't know if the file certiCheckHostAndIp.c is revelant anyway.
Also, the projet CertiCheckHostAndIP shoud link with ws2_32.lib.

2 - LibFedTime1516 has unresolved external for rti1516::VariableLengthData(void const *, unsigned long) and rti1516::VariableLengthData::data(void) const
Shoud libFedTime1516 link with RTI1516?

3 - LibFedTime has unresolved external for ~RTIfedTime and RTIfedTime()

4 - RTI has unresolved external ~RTIfedTime and RTIfedTime()

5 - RTI1516 has unresolved external for rti1516::VariableLengthData(void const *, unsigned long) and rti1516::VariableLengthData::data(void) const

6 - Federate.cc line 193. Not sure the string is correct, shoudn't it be

fom_paths.insert(fom_paths.end(),string(temp)+"\\share\\federations\\");

instead? (two \\ before "share")

7 - libcerti\objectclass.cc(1017) : warning C4700: uninitialized local variable 'oca' used
Will likely crash ;)

I'm not familiar enough with the CERTI source code to propose patches, but I'll be pleased to test whatever you want.

Thanks!

JPL

On 08/09/2011 4:26 PM, Eric Noulard wrote:
2011/9/8 Eric Noulard<address@hidden>:
2011/9/8 Jean-Philippe Lebel<address@hidden>:
Hi Guys,

Is there a reason why I can't build Certi from sources with the CVS Head?
Compiling libCERTI fails with a bunch of

Error    1    error C2039: 'data' : is not a member of 'std::vector<_Ty>'
  c:\Code\Certi\certi\libCERTI\NM_Classes.cc    1216
Looks like a plain mistake of mine assuming that stl::vector<T>  class does
have a data() method.

I should have used&(v[0]), I'm looking into it just now.
Just committed the fix to CVS HEAD.
I'm blind here since I do not have a Windows box at hand.

Please update and retry.

If ever you encounter other compile error do not hesitate to propose a patch
to fix it. We are really lacking of continuous builder&  tester for Windows.




--
Jean-Philippe Lebel, ing., MBA
ForwardSim inc.
Tel.: 418-650-3493 ext 6001
Fax.: 418-650-5661




reply via email to

[Prev in Thread] Current Thread [Next in Thread]