ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Как  в проекте KDevelop прилинковать библиотеку
@ 2004-05-19 15:11 Sergey Shilov
  2004-05-20  7:40 ` Максим
  0 siblings, 1 reply; 4+ messages in thread
From: Sergey Shilov @ 2004-05-19 15:11 UTC (permalink / raw)
  To: community

Возможно вопрос глупый но...

Есть програмка с использованием MD5 функций
Из командной строки 
gcc  -L. /lib/libcrypt.so /lib/libcrypt.so ...
Собирается и работает.

При сборке из KDevelop ругается
...
*компоновка kmd5 (libtool)
*... undefined reference to `md5_init_ctx(md5_ctx*)' 
...
Как побороть?
-- 
С уважением
Сергей Шилов


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Как  в проекте KDevelop прилинковать библиотеку
  2004-05-19 15:11 [Comm] Как в проекте KDevelop прилинковать библиотеку Sergey Shilov
@ 2004-05-20  7:40 ` Максим
  2004-05-20  8:42   ` Sergey Shilov
  0 siblings, 1 reply; 4+ messages in thread
From: Максим @ 2004-05-20  7:40 UTC (permalink / raw)
  To: community

Sergey Shilov пишет:

>Возможно вопрос глупый но...
>
>Есть програмка с использованием MD5 функций
>Из командной строки 
>gcc  -L. /lib/libcrypt.so /lib/libcrypt.so ...
>Собирается и работает.
>
>При сборке из KDevelop ругается
>...
>*компоновка kmd5 (libtool)
>*... undefined reference to `md5_init_ctx(md5_ctx*)' 
>...
>Как побороть?
>  
>
какой KDevelop?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Как  в проекте KDevelop прилинковать библиотеку
  2004-05-20  7:40 ` Максим
@ 2004-05-20  8:42   ` Sergey Shilov
    0 siblings, 1 reply; 4+ messages in thread
From: Sergey Shilov @ 2004-05-20  8:42 UTC (permalink / raw)
  To: community

В сообщении от 20 Май 2004 10:40 Максим написал(a):

>
> какой KDevelop?
>
3.0.3 в составе KDE 3.2.2


Собственно упрощенный тестовый пример (md5.c) печатающий МД5 
дайджест аргумента командной строки 
------------------------------------------------------- 

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <md5.h>

char* md5(const char *s) {
  struct md5_ctx ctx;
  char *buf;

  buf = ( char *) malloc( 32 + 1 );
  md5_buffer(s, strlen(s), buf) ; 
  return buf;

}

int main(int argc, char *argv[]) {
  if ( argc < 2 ) {
    printf("use %s VALUE\n", argv[0]);
    printf("    whetre VALUE - is a string for process digest\n", 
argv[0]) ;
    return -1;
  }
  printf( "%s\n" , md5 ( argv[1]) ) ;
  return EXIT_SUCCESS;
}
----------------------------------------------------------------

На ура собирается и работает 
gcc md5c.c -L. /lib/libcrypt.so.1 -o md5




-- 
С уважением
Сергей Шилов


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Как  в проекте KDevelop прилинковать библиотеку [JT]
  @ 2004-05-20  9:56       ` Sergey Shilov
  0 siblings, 0 replies; 4+ messages in thread
From: Sergey Shilov @ 2004-05-20  9:56 UTC (permalink / raw)
  To: community

> P.S. Если я плохо объяснил то могу выслать Screenshot как всё
> делать !
Песня :-)

-- 
С уважением и премногими благодарностями ! 
Сергей Шилов


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-05-20  9:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-19 15:11 [Comm] Как в проекте KDevelop прилинковать библиотеку Sergey Shilov
2004-05-20  7:40 ` Максим
2004-05-20  8:42   ` Sergey Shilov
2004-05-20  9:56       ` [Comm] Как в проекте KDevelop прилинковать библиотеку [JT] Sergey Shilov

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git