Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8748059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:27:39+00:00 2026-06-13T12:27:39+00:00

I’m trying to implement save-file for application, by using Protocol Buffers by Google. Preparation

  • 0

I’m trying to implement save-file for application, by using Protocol Buffers by Google.

Preparation

A simple test .proto file has been created to test functionality:

message LessonFile {  
  optional string creator = 1;  
}

Created .pb.cc and .pb.h are included into project. Lib and include directory are specified in project’s properties.

Problem
Including newly generated code into project results application crash during runtime.

By debugging crash state, it pointed on this function:

UnknownFieldSet::UnknownFieldSet()
    : fields_(NULL) {} ---------here---------

while frame above points on:

LessonFile::LessonFile()
    : ::google::protobuf::Message() { ---------here---------
    SharedCtor();
}

Call stack:

google::protobuf::UnknownFieldSet::UnknownFieldSet (this=0x770e3cc3)
LessonFile (this=0xba64b30) protobuf_AddDesc_LessonFile_2eproto ()
StaticDescriptorInitializer_LessonFile_2eproto (this=0x4bc108)
__static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) global constructors keyed to _Z38protobuf_AssignDesc_LessonFile_2eprotov ()
__do_global_ctors ()
__mingw_CRTStartup () WinMainCRTStartup ()

Additional info
Environment: Netbeans; Windows7-64; Qt-4.8.1 + mingw, protobuf-2.4.1.
Also there were problems with Protobuf compilation process: make check is constantly fails with this messages:

In file included from ./include/gtest/gtest-param-test.h:159:0,
from ./include/gtest/gtest.h:59,
from src/gtest.cc:34: ./include/gtest/internal/gtest-param-util-generated.h: In
instantiation of ::operator
testing::internal::ParamGenerator() const [with T = bool; T1 =
bool; T2 = bool]>: ./include/gtest/gtest-param-test.h:1186:28:
required from here
./include/gtest/internal/gtest-param-util-generated.h:80:26: error:
was not declared in this scope, and no declarations were
found by argument-dependent lookup at the point of instantiation
[-fpermissive] In file included from ./include/gtest/gtest.h:59:0,
from src/gtest.cc:34: ./include/gtest/gtest-param-test.h:288:58: note: testing::internal::ParamGenerator testing::ValuesIn(const Container&)> declared
here, later in the translation unit

though libraries and protoc.exe were compiled successfully and make install created include directory and lib*.a/lib*.dll.a files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:27:40+00:00Added an answer on June 13, 2026 at 12:27 pm

    Comments converted to an answer, for future viewers:

    1. Download the MingW + MSYS package then install it.
    2. Copy the “msys” folder in MingW’s install folder to “C:\msys”, delete the “mingw” folder in “C:\msys”.
    3. Edit “C:\msys\etc\fstab” to “C:/QtSDK/mingw /mingw”
    4. Copy the protobuf source to “C:\msys\home\”
    5. Open the msys shell, cd to “/home//protobuf”
    6. http://eschew.wordpress.com/2009/09/20/building-protobuf-with-mingw-gcc-4-4-0/ – Item #2
    7. Run “./configure –disable-shared”
    8. Run “make”
    9. Manually copy the generated library files to the qt library directories (header files as well – maintain directory structure)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I'm making a simple page using Google Maps API 3. My first. One marker
Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to render a haml file in a javascript response like so:
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I am trying to understand how to use SyndicationItem to display feed which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.