Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link external Library #797

Closed
jjbier opened this issue Mar 17, 2014 · 5 comments
Closed

Link external Library #797

jjbier opened this issue Mar 17, 2014 · 5 comments
Labels
discussion Discussion about the behaviour of InspIRCd

Comments

@jjbier
Copy link

jjbier commented Mar 17, 2014

@attilamolnar I job in inspircd: 2.0.15

The steps that I do:

1º I created a basic program https://gist.github.com/jjbier/9595864
2º Created a module for inspird https://github.com/antwebes/inspircd-modules/blob/master/m_rabbitmq.cpp

The problem is: undefined symbol: ZN10AmqpClient7ChannelC1ERKSsiS2S2_S2_i

  • this error only ocurred in ubuntu 13.10 amd64 for the module.

I run basic program and module in debian 7 amd64, It run ok .
I run the basic program in ubuntu 13.10 amd64 and It run ok, I used this for compile the basic program in ubuntu : g++ main.cc -o test -lSimpleAmqpClient

For add module I put m_rabbitmq.cpp and m_message.h in src/modules/
and run ./cofigure; make; su -c "make install" inspircd

I think is all

Thanks for you help, I do not know to do

@WindowsUser
Copy link
Contributor

How is this related to InspIRCd? IMHO this would belong on a site like StackExchange or StackOverflow.

@jjbier
Copy link
Author

jjbier commented Mar 17, 2014

@WindowsUser I think that the problem is who inspircd do not linked libs in comments in ubuntu 13.10 amd64. I do not have this problem in other operating system.

Or that I am making something bad

Why I use Issue instead of stackoverflow for example, because for me, the Issue are question or error for developers of product,

and stackoverflow, for example, It is question for all developers in general, for topics more generics for example, who I have a problem in a source code. This is only a opinion or habit

@WindowsUser
Copy link
Contributor

Well, issues for this repository should only pertain to InspIRCd. General questions about coding are kinda out of scope here (I notice that you have since clarified that you're trying to write a module here, so you can ignore this comment).

@WindowsUser
Copy link
Contributor

Also, in that module, you're missing some key includes, not the least of which would be #include "inspircd.h"

@jjbier
Copy link
Author

jjbier commented Mar 17, 2014

The #include "inspircd.h" is add in #include "m_message.h"
but thanks for the remarks THe real problen is that lib SimpleAmqpClient is isntaled for default in /usr/local/lib if I have symbolic link in /usr/lib the problen go away,

Thanks for you help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussion about the behaviour of InspIRCd
Development

No branches or pull requests

3 participants