[ 
https://issues.apache.org/jira/browse/THRIFT-2800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14238067#comment-14238067
 ] 

saber hattay commented on THRIFT-2800:
--------------------------------------

I run this command : thrift -r gen cpp tutorial.thrift 

And it create these files : 
Calculator.cpp 
Calculator_server.skeleton.cpp
shared_constant.cpp
shared_types.cpp
SharedService.cpp  
etc ...

Calculator.h
Calculator_server.skeleton.h
shared_constant.h
shared_types.h
SharedService.h
etc...

I want to do this tutorial : https://thrift.apache.org/tutorial/cpp

But I tried to build the lib "cpp" in this floder with the Visual Project : 
thrift/lib/cpp/ 
(Because the make failed). 

Must I use this lib "ccp" to run the cpp tutorial ? 

exemple of error in the visual project c++ : 
tnonblockingserver.h(162)  synthax error : absence of ";" before "*" 

 156 THRIFT_SOCKET serverSocket_;

  /// Port server runs on
 159  int port_;

  /// The optional user-provided event-base (for single-thread servers)
 162  event_base* userEventBase_;

  /// For processing via thread pool, may be NULL
  165 boost::shared_ptr<ThreadManager> threadManager_;

  /// Is thread pool processing?
  168 bool threadPoolProcessing_;


Thank you in advance for your help. 




> error in running make : error in thrifty.cc the method yyparse() reserch the 
> method strdup() (not declared)
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-2800
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2800
>             Project: Thrift
>          Issue Type: Bug
>          Components: Build Process
>         Environment: cygwin64
> Windows 7 _ 64 bits
>            Reporter: saber hattay
>              Labels: build, github-import
>         Attachments: ConfigureAndMake.txt, ConfigureResult.jpg, 
> ErrorMake.txt, FileNoError.jpg, MakeAndFlex.jpg, MakeResult.jpg, TutoJS.jpg, 
> TutoJS_gen.jpg, bootstrapShResult.jpg, commandDos.jpg, commandeMake.jpg, 
> errorMake.jpg, strdup.patch, strdup.patch, strdup_removed.patch, 
> thriftyNewVersion.yy, thriftyOldVersion.yy, tutorial_types.js
>
>
> Hello, 
> When I tape this command : configure && make  
> I receive this result : 
> make : *** error 2 
> cause by the appel of this function strdup() (function not declared). 
> It's the first time I want to build thrift. 
> Thank you in advance for you help. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to