1/* main.c -- mdemo2 test program 2 Copyright (C) 2003 Free Software Foundation, Inc. 3 Originally by Greg Eisenhauer < eisen at cc.gatech.edu > 4 This file is part of GNU Libtool. 5 6This program is free software; you can redistribute it and/or modify 7it under the terms of the GNU General Public License as published by 8the Free Software Foundation; either version 2 of the License, or 9(at your option) any later version. 10 11This program is distributed in the hope that it will be useful, 12but WITHOUT ANY WARRANTY; without even the implied warranty of 13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14GNU General Public License for more details. 15 16You should have received a copy of the GNU General Public License 17along with this program; if not, write to the Free Software 18Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 19USA. */ 20 21#include <stdio.h> 22#include "ltdl.h" 23 24int 25main (argc, argv) 26 int argc; 27 char **argv; 28{ 29 int ret = 0; 30 31 printf ("Welcome to GNU libtool mdemo2!\n"); 32 if (argc < 2) { 33 fprintf (stderr, "usage: %s module [module...]\n", argv[0]); 34 } 35 36/* This must be called in the program to get the preloaded symbols */ 37 LTDL_SET_PRELOADED_SYMBOLS(); 38 39 ret = mlib_func(argc, argv); 40 41 return ret; 42} 43