470,864 Members | 1,592 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,864 developers. It's quick & easy.


I am using the OpenSSL BIGNUM lib for my program. I got rid of all the compiler errors/warnings about it's usage, and when I thought it would compile:

Expand|Select|Wrap|Line Numbers
  1. rabler.c:(.text+0x1a8): undefined reference to `BN_CTX_new'
  2. rabler.c:(.text+0x1cc): undefined reference to `BN_mod_exp'
The file is there, and the compiler knows where it is.
I guess I have to use some special GCC flags(like with math.h "-lm")?

Tried to Google, but didn't succeed.

Thanks in advance.
Feb 27 '08 #1
2 3363
9,208 Expert Mod 8TB
A compiler undefined reference usually means that you are missing a header file or that a preprocessor symbol has not been defined.
Feb 27 '08 #2
I said I had the file, and the compiler detected it. It knows where it is and how to access it.
Proof: It got the "BIGNUM" from the lib
Feb 27 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Christopher Murtagh | last post: by
17 posts views Thread by cpptutor2000 | last post: by
1 post views Thread by laredotornado | last post: by
reply views Thread by fsck | last post: by
4 posts views Thread by Patrick | last post: by
4 posts views Thread by Tan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.