Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Fri, 14 Mar 2008 07:58:46 -0500,    group: microsoft.public.vstudio.development        back       


IPCs   
Hi,

We are doing a migration from UNIX to Windows. We are using VC 8.0
compiler to regenerate all c++ components. Currently, in one component
there are lots of IPCs and after including Cygwin headers ipc.h,sem.h and
shm.h we are getting errors as below.

As there are more than  40 files , currently due to time constraint , we
are not in a position to go for rewriting using Windows equivalent IPCs.

So please give as an easiest alternative which will solve our problem.



\LIBS_NEEDED\cygwin/shm.h(52) : error C2146: syntax error : missing ';'
before identifier 'shm_atim'
C:\LIBS_NEEDED\cygwin/shm.h(52) : error C4430: missing type specifier -
int assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\cygwin/shm.h(52) : error C4430: missing type specifier -
int assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\cygwin/shm.h(53) : error C2146: syntax error : missing ';'
before identifier 'shm_dtim'
C:\LIBS_NEEDED\cygwin/shm.h(53) : error C4430: missing type specifier -
int assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\cygwin/shm.h(53) : error C4430: missing type specifier -
int assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\cygwin/shm.h(54) : error C2146: syntax error : missing ';'
before identifier 'shm_ctim'
C:\LIBS_NEEDED\cygwin/shm.h(54) : error C4430: missing type specifier -
int assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\cygwin/shm.h(54) : error C4430: missing type specifier -
int assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\cygwin/sem.h(45) : error C2146: syntax error : missing ';'
before identifier 'sem_otim'
C:\LIBS_NEEDED\cygwin/sem.h(45) : error C4430: missing type specifier -
int assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\cygwin/sem.h(45) : error C4430: missing type specifier -
int assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\cygwin/sem.h(46) : error C2146: syntax error : missing ';'
before identifier 'sem_ctim'
C:\LIBS_NEEDED\cygwin/sem.h(46) : error C4430: missing type specifier -
int assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\cygwin/sem.h(46) : error C4430: missing type specifier -
int assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\pthread.h(78) : error C2065: 'pthread_attr_t' : undeclared
identifier
C:\LIBS_NEEDED\pthread.h(78) : error C2059: syntax error : ')'
C:\LIBS_NEEDED\pthread.h(79) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\pthread.h(79) : error C2143: syntax error : missing ','
before '*'
C:\LIBS_NEEDED\pthread.h(80) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\pthread.h(80) : error C2143: syntax error : missing ','
before '*'
C:\LIBS_NEEDED\pthread.h(81) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\pthread.h(81) : error C2143: syntax error : missing ','
before '*'
C:\LIBS_NEEDED\pthread.h(82) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\pthread.h(82) : error C2143: syntax error : missing ','
before '*'
C:\LIBS_NEEDED\pthread.h(83) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\pthread.h(83) : error C2143: syntax error : missing ','
before '*'
C:\LIBS_NEEDED\pthread.h(84) : error C2059: syntax error : ')'
C:\LIBS_NEEDED\pthread.h(85) : error C2059: syntax error : ','
C:\LIBS_NEEDED\pthread.h(86) : error C2059: syntax error : ','
C:\LIBS_NEEDED\pthread.h(87) : error C2059: syntax error : ','
C:\LIBS_NEEDED\pthread.h(88) : error C2059: syntax error : ','
C:\LIBS_NEEDED\pthread.h(89) : error C2059: syntax error : ','
C:\LIBS_NEEDED\pthread.h(105) : error C2065: 'pthread_t' : undeclared
identifier
C:\LIBS_NEEDED\pthread.h(129) : error C2065: 'pthread_cond_t' : undeclared
identifier
C:\LIBS_NEEDED\pthread.h(129) : error C2059: syntax error : ')'
C:\LIBS_NEEDED\pthread.h(130) : error C2059: syntax error : ')'
C:\LIBS_NEEDED\pthread.h(131) : error C2059: syntax error : ','
C:\LIBS_NEEDED\pthread.h(132) : error C2059: syntax error : ')'
C:\LIBS_NEEDED\pthread.h(133) : error C2059: syntax error : ','
C:\LIBS_NEEDED\pthread.h(135) : error C2059: syntax error : ','
C:\LIBS_NEEDED\pthread.h(136) : error C2065: 'pthread_condattr_t' :
undeclared identifier
C:\LIBS_NEEDED\pthread.h(136) : error C2059: syntax error : ')'
C:\LIBS_NEEDED\pthread.h(137) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
C:\LIBS_NEEDED\pthread.h(137) : error C2143: syntax error : missing ','
before '*'
C:\LIBS_NEEDED\pthread.h(138) : error C2059: syntax error : ')'
C:\LIBS_NEEDED\pthread.h(139) : error C2059: syntax error : ','
C:\LIBS_NEEDED\pthread.h(141) : error C2059: syntax error : ','
C:\LIBS_NEEDED\pthread.h(144) : error C2078: too many initializers
C:\LIBS_NEEDED\pthread.h(146) : error C2062: type 'int' unexpected
C:\LIBS_NEEDED\pthread.h(147) : error C2065: 'pthread_key_t' : undeclared
identifier
C:\LIBS_NEEDED\pthread.h(148) : error C2062: type 'void' unexpected




   

--
Message posted using http://www.talkaboutsoftware.com/group/microsoft.public.vstudio.development/
More information at http://www.talkaboutsoftware.com/faq.html
date: Fri, 14 Mar 2008 07:58:46 -0500   author:   Shoba

Re: IPCs   
On Fri, 14 Mar 2008 07:58:46 -0500, "Shoba" 
wrote:

> Hi,
> 
> We are doing a migration from UNIX to Windows. We are using VC 8.0
> compiler to regenerate all c++ components. Currently, in one component
> there are lots of IPCs and after including Cygwin headers ipc.h,sem.h and
> shm.h we are getting errors as below.
> 
> As there are more than  40 files , currently due to time constraint , we
> are not in a position to go for rewriting using Windows equivalent IPCs.
> 
> So please give as an easiest alternative which will solve our problem.

use gcc instead ?
--
A: People bitching about top-posting

> Q: What's the most annoying thing on USENET?
date: Sat, 15 Mar 2008 18:58:28 +0800   author:   Anders Karlsson

Re: IPCs   
Hi ,

U mean , GCC for windows???

We used g++ compiler using Cygwin environment to cross compile and build
the component. But the third party library (Roguewave)is giving lots of
linker error. So other approach was to compile in VC and to include Cygwin
headers for UNIX APIs.

Command used in Makefile

g++ -o $(BUILD_TARGETS) *.o -L<Roguewave Library
path> -ljcppExtProcess -ljcc -ljutils -lorasql10
-ltls8012d

tls8012d is the only Roguewave library used in our application. But its
not getting linked. 

Please suggest.

Thanks in Advance.



--
Message posted using http://www.talkaboutsoftware.com/group/microsoft.public.vstudio.development/
More information at http://www.talkaboutsoftware.com/faq.html
date: Mon, 17 Mar 2008 02:53:05 -0500   author:   Shoba

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us