marcosgambeta / sqlrddpp

SQLRDD for Harbour++ and Harbour
GNU General Public License v2.0
11 stars 6 forks source link

Error Compiling Under Ubuntu 22 #12

Closed mhsabado closed 1 year ago

mhsabado commented 1 year ago

Hi Marcos,

I have encountered the following error when compiling HarbourPP + SQLRDDPP under Ubuntu 22.

Thanks, Mario


../../../../../../source/sqlsrodbc.c: In function ‘void HB_FUN_SR_GETCONNECTOPTION()’: ../../../../../../source/sqlsrodbc.c:1005:16: error: invalid conversion from ‘char’ to ‘SQLPOINTER’ {aka ‘void*’} [-fpermis] 1005 buffer[0] = '\0'; ^~~~
char

hbmk2[sqlrddpp]: Error: Running C/C++ compiler. 1 g++ -c -O3 -W -Wall -pipe -I'/home/mhsabado/win_d/harbourpp/include' -I../../../../../../include -I../../../../../../sourcc


marcosgambeta commented 1 year ago

To compile in C++, the flag below is required:

-fpermissive

Try this:

hbmk2 sqlrddpp.hbp -cflag=-fpermissive

mhsabado commented 1 year ago

Hi Marcos,

It compiles successfully after the adding -fpermissive flag.

Thank you!

Mario

On Mon, Oct 16, 2023 at 7:58 AM Marcos Antonio Gambeta < @.***> wrote:

To compile in C++, the flag below is required:

-fpermissive

Try this:

hbmk2 sqlrddpp,hbp -cflag=-fpermissive

— Reply to this email directly, view it on GitHub https://github.com/marcosgambeta/sqlrddpp/issues/12#issuecomment-1763543545, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAWM4VRTYFZ7MXIRVAJW3LX7R2DPAVCNFSM6AAAAAA6BJ54EGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGU2DGNJUGU . You are receiving this because you authored the thread.Message ID: @.***>