Menu

#2 Cannot compile under Linux

v1.0 (example)
open
Dan
None
5
2018-03-18
2018-03-18
No

I tried to compile it,and did some extensive changes to the code, but I'm stuck at this stage:

rexx_mysql.h:53:2: error: excess elements in char array initializer
"MySQL_Connect",
^~~~~~~~~~~~~~~
rexx_mysql.h:53:2: note: (near initialization for ‘FuncTable’)
rexx_mysql.h:54:2: error: excess elements in char array initializer
"MySQL_Close",
^~~~~~~~~~~~~
rexx_mysql.h:54:2: note: (near initialization for ‘FuncTable’)
rexx_mysql.h:55:2: error: excess elements in char array initializer
"MySQL_Select_DB",
^~~~~~~~~~~~~~~~~
rexx_mysql.h:55:2: note: (near initialization for ‘FuncTable’)
rexx_mysql.h:56:2: error: excess elements in char array initializer
"MySQL_Query",
^~~~~~~~~~~~~
rexx_mysql.h:56:2: note: (near initialization for ‘FuncTable’)
rexx_mysql.h:57:2: error: excess elements in char array initializer
"MySQL_Store_Result",
^~~~~~~~~~~~~~~~~~~~
rexx_mysql.h:57:2: note: (near initialization for ‘FuncTable’)
rexx_mysql.h:58:2: error: excess elements in char array initializer
"MySQL_Use_Result",

I would appreciate your assistance.
I will upload the resulting code when it compiles fine with current Linux's..
Thanks for this package, OoRexx - MySQL interface is a necessary package.

Related

Support Requests: #2

Discussion

  • turgut kalfaoglu

    I got it to compile..
    Just a few changes :

    in rexx_utils.h, somewhere towards the beginning:

    #include <stdbool.h>
    #define BOOL bool
    #define FALSE false
    #define TRUE true
    #define APIRET int
    #define ULONG unsigned long int 
    #define LONG long int 
    #define PSZ char *
    
     
    • Dan

      Dan - 2018-03-19

      Appreciate you fixing up this code. It’s not something I’ve used or updated in years. Thanks!

      On Mar 18, 2018, at 5:27 AM, turgut kalfaoglu tkalfaoglu2@users.sourceforge.net wrote:

      I got it to compile..
      Just a few changes :

      in rexx_utils.h, somewhere towards the beginning:

      include <stdbool.h>

      define BOOL bool

      define FALSE false

      define TRUE true

      define APIRET int

      define ULONG unsigned long int

      define LONG long int

      define PSZ char *

      [support-requests:#2] https://sourceforge.net/p/rexx-mysql/support-requests/2/ Cannot compile under Linux

      Status: open
      Group: v1.0 (example)
      Created: Sun Mar 18, 2018 09:18 AM UTC by turgut kalfaoglu
      Last Updated: Sun Mar 18, 2018 09:18 AM UTC
      Owner: Dan

      I tried to compile it,and did some extensive changes to the code, but I'm stuck at this stage:

      rexx_mysql.h:53:2: error: excess elements in char array initializer
      "MySQL_Connect",
      ^~~~~~~~~~~~~~~
      rexx_mysql.h:53:2: note: (near initialization for ‘FuncTable’)
      rexx_mysql.h:54:2: error: excess elements in char array initializer
      "MySQL_Close",
      ^~~~~~~~~~~~~
      rexx_mysql.h:54:2: note: (near initialization for ‘FuncTable’)
      rexx_mysql.h:55:2: error: excess elements in char array initializer
      "MySQL_Select_DB",
      ^~~~~~~~~~~~~~~~~
      rexx_mysql.h:55:2: note: (near initialization for ‘FuncTable’)
      rexx_mysql.h:56:2: error: excess elements in char array initializer
      "MySQL_Query",
      ^~~~~~~~~~~~~
      rexx_mysql.h:56:2: note: (near initialization for ‘FuncTable’)
      rexx_mysql.h:57:2: error: excess elements in char array initializer
      "MySQL_Store_Result",
      ^~~~~~~~~~~~~~~~~~~~
      rexx_mysql.h:57:2: note: (near initialization for ‘FuncTable’)
      rexx_mysql.h:58:2: error: excess elements in char array initializer
      "MySQL_Use_Result",

      I would appreciate your assistance.
      I will upload the resulting code when it compiles fine with current Linux's..
      Thanks for this package, OoRexx - MySQL interface is a necessary package.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/rexx-mysql/support-requests/2/ https://sourceforge.net/p/rexx-mysql/support-requests/2/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #2


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.