Skip to content

Use of functions from cmqstrc.h #142

@fswarbrick

Description

@fswarbrick

This is probably more of a question than an actual issue, but I couldn't find anywhere else to ask.

Using MQ V9.1, current mq-golang, go1.14.2 windows/amd64

/*
#cgo windows CFLAGS: -I"C:/Program Files/IBM/MQ/Tools/c/include"
#include <cmqc.h>
#include <cmqstrc.h>
*/
import "C"

fmt.Println(mqmd.Feedback, C.GoString(C.MQFB_STR(C.MQLONG(mqmd.Feedback))))

The issue is that during the linking step its saying there are multiple definitions of each of the functions that are defined in cmqstrc.h. Of course if I don't include this header file then the compiler complains it cannot find MQFB_STR. Any thoughts on how I can invoke MQFB_STR from my application?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions