15

To start off: I'm not a programmer. I'm a civil engineer who picked up matlab in school and then scientific python in my career as a means to set myself apart from most other meat-space engineers. Effectively, I know what C/C++ is on a conceptual level, but for this purposes, let's pretend I barely grasp what's going on when I read it.

I'm currently trying to improve a python library (py1) that serves as an interface to a pretty mathematically complex C library (C1). That C library depends on another C library (C2), which depends on ... all the way down to C4.

Point is, it's not working somewhere in the compilation/linking/configuration phase. And I don't even know where to begin when it comes to formulating a useful question.

Should I post the header files and the compilation commands in the makefile? Is SO even the place for this type of question? ("yes" would be the suprising answer here to me)

I tried searching SO for various incantation of tags that seemed relevant, based on my rudimentary understanding, but couldn't find any good (or highly upvoted) questions that helped me with my issue or serve as a guide as to how to ask a good question.

11
  • meta.stackoverflow.com/questions/258685/…
    – gnat
    Commented Jan 18, 2015 at 20:28
  • @gnat thanks for the link. That confirms my suspicions: if there's not a clear path in my mind to make a reproducible example, I can't write a good SO question.
    – Paul H
    Commented Jan 18, 2015 at 20:31
  • that's right. On the other hand, since you're trying to fix the issue anyway, chances are good that at some step down that path you will get to the point from where such a question would naturally emerge
    – gnat
    Commented Jan 18, 2015 at 20:34
  • your question in general, sounds more like a how do I debug this config rather than succinct programming problem Commented Jan 18, 2015 at 20:34
  • 1
    Ask a C programmer to ask this question. Commented Jan 18, 2015 at 20:41
  • @Plutonix: I think that's a fair assessment. Other the otherhand, I think the fix might be relatively simple (i.e., oh just add #include <blah> here. But I'm driving blind and my tinkering has been completely fruitless.
    – Paul H
    Commented Jan 18, 2015 at 20:53
  • @HansPassant that's a great idea. Now if I could just find a C programmer... :/
    – Paul H
    Commented Jan 18, 2015 at 20:53
  • 4
    you could probably find one in a chat room - they might even give you some pointers on how to debug that config Commented Jan 18, 2015 at 20:56
  • @Plutonix I hadn't thought of that. thanks!
    – Paul H
    Commented Jan 18, 2015 at 21:17
  • The output of the "make" command probably will be enough to start.
    – CristianTM
    Commented Jan 19, 2015 at 12:05
  • You could start by isolating out which of the "configure/compile/link" phases is failing and concentrating on that. If ntohing else, it might narrow down the search for you enough to hopefully find a solving answer. It's ideal if you can run the phases separately. If not, the name of the program which reports the error should be enough to (let Google) tell whether it's the compiler or linker. Commented Jan 19, 2015 at 12:49

0

You must log in to answer this question.

Browse other questions tagged .