
Originally Posted by
wysota
Your library will be named "libcrypt" so you have to have -lcrypt instead of -llib.
I dont know I just replied but the post got lost. If you see doubt post please forgive.
Oh! I have corrected myself...Thank you wysota.
There is still another problem.
I have defined myLib.h and myLib.cpp in lib directory. I have defined a method called getString() which return HELLO WORLD.
When I call this method in main.cpp defined in app directory I get unreferneced parameter "test::getString()".
Then I made the function inline in myLib.h...It worked. Why is that happening????
Also I want myApp to depend on myLib ie. when I say
qmake scribble.pro
make clean
make
First myLib should compile and create "crypt" then myApp should create "scribble.exe".
Now I have to do seperately.
ie. I have to do for myLib
qmake myLib.pro
make clean
make
qmake myLib.pro
make clean
make
To copy to clipboard, switch view to plain text mode
Creates crypt
Then I have to say
qmake scribble.pro
make clean
make
qmake scribble.pro
make clean
make
To copy to clipboard, switch view to plain text mode
Created scribble.exe
This is not a good idea
Thanks for your understanding
Bookmarks