Techiio-author
Started by Prasanta DasSep 23, 2021

Open
error: 'SecretCollection' was not declared in this scope

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I have a cpp working program using libsecret-1 which was compiled on ubuntu 20.04. Due to some requirements, now I need to compile the code in ubuntu 14.04. While compiling, it is not declared in this scope error. I narrowed down the problematic code and with the below line added in header file it can be reproducible.

GError *getSecretCollection(SecretCollection **collection);

This is the error log

error: 'SecretCollection' was not declared in this scope
GError *getSecretCollection(SecretCollection **collection);

I linked the program with libsecret while compilation. How to fix this?

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance