From 8937cc526ec6d37ff295c7295b7d657d238e63f4 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hypki Date: Fri, 25 Oct 2024 09:57:51 +0200 Subject: [PATCH] 'Added ex4;' --- ex4.md | 5 + ex4/lib/.cproject | 142 ++++++++++++++++++ ex4/lib/.project | 27 ++++ ex4/lib/.settings/language.settings.xml | 25 +++ ex4/lib/Debug/TestClass.d | 2 + ex4/lib/Debug/TestClass.o | Bin 0 -> 22224 bytes ex4/lib/Debug/liblib-cpp-shared.so | Bin 0 -> 34160 bytes ex4/lib/Debug/makefile | 69 +++++++++ ex4/lib/Debug/sources.mk | 27 ++++ ex4/lib/Debug/subdir.mk | 31 ++++ ex4/lib/TestClass.cpp | 26 ++++ ex4/lib/TestClass.h | 23 +++ ex4/main/.cproject | 134 +++++++++++++++++ ex4/main/.project | 27 ++++ ex4/main/.settings/language.settings.xml | 25 +++ ex4/main/.settings/org.eclipse.cdt.core.prefs | 11 ++ ex4/main/src/main-using-lib-cpp-shared.cpp | 24 +++ 17 files changed, 598 insertions(+) create mode 100644 ex4.md create mode 100644 ex4/lib/.cproject create mode 100644 ex4/lib/.project create mode 100644 ex4/lib/.settings/language.settings.xml create mode 100644 ex4/lib/Debug/TestClass.d create mode 100644 ex4/lib/Debug/TestClass.o create mode 100755 ex4/lib/Debug/liblib-cpp-shared.so create mode 100644 ex4/lib/Debug/makefile create mode 100644 ex4/lib/Debug/sources.mk create mode 100644 ex4/lib/Debug/subdir.mk create mode 100644 ex4/lib/TestClass.cpp create mode 100644 ex4/lib/TestClass.h create mode 100644 ex4/main/.cproject create mode 100644 ex4/main/.project create mode 100644 ex4/main/.settings/language.settings.xml create mode 100644 ex4/main/.settings/org.eclipse.cdt.core.prefs create mode 100644 ex4/main/src/main-using-lib-cpp-shared.cpp diff --git a/ex4.md b/ex4.md new file mode 100644 index 0000000..a471ae1 --- /dev/null +++ b/ex4.md @@ -0,0 +1,5 @@ +1. Use ex4 folder to find out how to create shared libary (eclipse IDE in this case) + +2. Create a shared library of your code, which solved one of the Rosaild's problem + +3. Use any of the shared libraries of your chosen friend \ No newline at end of file diff --git a/ex4/lib/.cproject b/ex4/lib/.cproject new file mode 100644 index 0000000..0b03f10 --- /dev/null +++ b/ex4/lib/.cproject @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ex4/lib/.project b/ex4/lib/.project new file mode 100644 index 0000000..c36bbb8 --- /dev/null +++ b/ex4/lib/.project @@ -0,0 +1,27 @@ + + + lib-cpp-shared + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/ex4/lib/.settings/language.settings.xml b/ex4/lib/.settings/language.settings.xml new file mode 100644 index 0000000..17f664e --- /dev/null +++ b/ex4/lib/.settings/language.settings.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ex4/lib/Debug/TestClass.d b/ex4/lib/Debug/TestClass.d new file mode 100644 index 0000000..f9d4887 --- /dev/null +++ b/ex4/lib/Debug/TestClass.d @@ -0,0 +1,2 @@ +TestClass.o: ../TestClass.cpp ../TestClass.h +../TestClass.h: diff --git a/ex4/lib/Debug/TestClass.o b/ex4/lib/Debug/TestClass.o new file mode 100644 index 0000000000000000000000000000000000000000..88c0048145f79fc48f452be4dd977dd436e0ce38 GIT binary patch literal 22224 zcmbuH2{={V7x1qTG8UylXfSg_W+f6)hGdA4@uJLQL`j-NA<>{jk|dQht0*b*_L52> zl}elDkh>swg3&C*`aT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0M*nJqsKc&~ewP9DSe}u->>q9rowCn8JUzo$QFOl)3iAl^ zWsQu5%>q5V!h-)H6|g#pMK?lR5`9WyH+J4DI53bEL|k1^a0H7<{HjeQJi^1vAM(CI zk<5^=;1E_=L=3dc@^kYE^9Uqb^$iP-453x{|8vwL41r!7quVir3@m2`Y4>EP58LO+ z@xSU@{GmR%*8bP}j!+-m54(RdH2z=fyF>la<0pN?|5`ub5B15maD8clk!xuz@fn?> zA#-pvB+f^#EwYFVcgQvkiO=Z73vrM;KvMr?AGAJTJ0|`o9@Rf5$k7Ke@RM|&K4Pp) z6p(HHzt$&jGsrgSzY`=**=aI#Bn^4`K#!l!liMu&`jKM%;QGx#ki33!E1>Js*S~^b zf9jw9Jqm;s(8}-nG$8%-pZY%o{loUbwm)+IasS~2Bl{nN#%~7KPwz*B2s_dB>3k}2 z!WKmZj!<6@j=beG z$NJDO+>X=YBmL8$h&cJv_~jwa8m)gagrobX$A6PxNJZ?X??C^v*}30eSoRuG^r!wE zp?`O%O6rdcng6qYh*LnE@e%shp#dD}`ZONtAKA|(=syht1+stgR+Fy(uj@zk<;ja8 zl00=7`To!ANA=B?P*u{PCfPsPC+`0t!TvP=%b@>ws81j0`gFdYIQf(Qo1yunT|k_ZsR8=0L=J!!qxJBPko{BrG`LSsVYl}C3)d&t2fO}n5%!q` zJQsj4bEK5+mp*b4C-nJ<5OJad^+z-E9Lth^o{ZDc^o`V~*ALweJ$^c`4E^K!e$f9V zS`d!7z8q2iPxH5LDODjF>XGv|gZR+(>G>n7|7+}I6=?{}LttRD2}Zt3!S%`8S5D%C gQyM%+3nM!il~9%)`~0cChy_)N{#^*&1g`&o0Cn!5lmGw# literal 0 HcmV?d00001 diff --git a/ex4/lib/Debug/liblib-cpp-shared.so b/ex4/lib/Debug/liblib-cpp-shared.so new file mode 100755 index 0000000000000000000000000000000000000000..89cc5c515d82e7c83443bb6585bb2124e3e176df GIT binary patch literal 34160 zcmeHwdvs(~neVBjt2<5T2Xq77fOgTmf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(!Ydy}bh+*bFq#-OX2CWaYRMrY-8f)miu1 z(LLUeXUYdhU-mPedpuv>^nKB@ZeCQaVPD5@je5%9)17tMI+uN5 zE2;b@>hZqL>IL0JR2qERweja$>xxQ6R(RpaOtmFg(x0qq7xG-gf$B$G1Ooi2Xm2wc%qL>1ydvK68Uz#pT0ev?&UA4lp z@MMK?qz}IooACVXc(Gcv!lfx^LiTVtQ{yOWo>U37nM9Q^_fkr#005#>oGFh1g;@Z` zPnfkS$fFAjR(Nc7W~PK!9)!nb5&}SE(=FoFqkIU~+!sej=Sv68lk9RZ_aK_N<>m*^ z^GtCJc>EV#=qCA{Rdi3hR{E~CPIlirXP(g!)sLpKcehRs%vw7DDvgK3?3%#ZMgB4 z59#tIjF^l%^nthT@Rc9b8B8esn)fp0P28Qh@z!tr4-;ZYQg`|B|DY~!=x>E|b{!f& zK*zfDGtYmD8>!!vH~x|duP_;P=&%2izVbaGmC=OX)8$NH_-~%SfE#!%uG*RRP@3<_ z`}3P;6F!cz;_Df;HSejss~wTJOg{Bgdp7Y;B0<`3%A4<@-=oX>`ESY@c+cQQWY3g0 z{@^iP{-**Qm*|gNro54ZA0y6NzxfXIL*kI)YEyyxYs#DOr%3UZH}B1S_5{oS(pTR2 z#hZ1*O+5wy|Fbyc5@*_P{N8OVl-J}i;H))>kT{*)jW^}}`fJLYaDy)I7SuN}4bTtQ zlr#CyU7`G#F4%7rLl^Luml;rhoMin(R27i1pZD@TTFDj4k6=6~*R3jWfBoetestValue = testValue; +} diff --git a/ex4/lib/TestClass.h b/ex4/lib/TestClass.h new file mode 100644 index 0000000..29f015c --- /dev/null +++ b/ex4/lib/TestClass.h @@ -0,0 +1,23 @@ +/* + * TestClass.h + * + * Created on: Oct 25, 2024 + * Author: ahypki + */ + +#ifndef TESTCLASS_H_ +#define TESTCLASS_H_ + +class TestClass { +private: + int testValue = 0; + +public: + TestClass(); + virtual ~TestClass(); + int getTestValue(); + + void setTestValue(int testValue); +}; + +#endif /* TESTCLASS_H_ */ diff --git a/ex4/main/.cproject b/ex4/main/.cproject new file mode 100644 index 0000000..13ab706 --- /dev/null +++ b/ex4/main/.cproject @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ex4/main/.project b/ex4/main/.project new file mode 100644 index 0000000..4366bad --- /dev/null +++ b/ex4/main/.project @@ -0,0 +1,27 @@ + + + main-using-lib-cpp-shared + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/ex4/main/.settings/language.settings.xml b/ex4/main/.settings/language.settings.xml new file mode 100644 index 0000000..d7db426 --- /dev/null +++ b/ex4/main/.settings/language.settings.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ex4/main/.settings/org.eclipse.cdt.core.prefs b/ex4/main/.settings/org.eclipse.cdt.core.prefs new file mode 100644 index 0000000..d426419 --- /dev/null +++ b/ex4/main/.settings/org.eclipse.cdt.core.prefs @@ -0,0 +1,11 @@ +eclipse.preferences.version=1 +environment/project/cdt.managedbuild.config.gnu.exe.debug.1968834354/LD_LIBRARY_PATH/delimiter=\: +environment/project/cdt.managedbuild.config.gnu.exe.debug.1968834354/LD_LIBRARY_PATH/operation=append +environment/project/cdt.managedbuild.config.gnu.exe.debug.1968834354/LD_LIBRARY_PATH/value=$LD_LIBRARY_PATH\:/home/ahypki/projekty/wmii-2023-bio-prog-obiektowe/ex4/lib/Debug/ +environment/project/cdt.managedbuild.config.gnu.exe.debug.1968834354/append=true +environment/project/cdt.managedbuild.config.gnu.exe.debug.1968834354/appendContributed=true +environment/project/cdt.managedbuild.config.gnu.exe.release.1370620746/LD_LIBRARY_PATH/delimiter=\: +environment/project/cdt.managedbuild.config.gnu.exe.release.1370620746/LD_LIBRARY_PATH/operation=append +environment/project/cdt.managedbuild.config.gnu.exe.release.1370620746/LD_LIBRARY_PATH/value=$LD_LIBRARY_PATH\:/home/ahypki/projekty/wmii-2023-bio-prog-obiektowe/ex4/lib/Debug/ +environment/project/cdt.managedbuild.config.gnu.exe.release.1370620746/append=true +environment/project/cdt.managedbuild.config.gnu.exe.release.1370620746/appendContributed=true diff --git a/ex4/main/src/main-using-lib-cpp-shared.cpp b/ex4/main/src/main-using-lib-cpp-shared.cpp new file mode 100644 index 0000000..a76a6a7 --- /dev/null +++ b/ex4/main/src/main-using-lib-cpp-shared.cpp @@ -0,0 +1,24 @@ +//============================================================================ +// Name : main-using-lib-cpp-shared.cpp +// Author : +// Version : +// Copyright : Your copyright notice +// Description : Hello World in C++, Ansi-style +//============================================================================ + +#include +#include "../../lib/TestClass.h" + +using namespace std; + +int main() { + cout << "!!!Hello World from a project which will use my shared library!!!" << endl; // prints !!!Hello World!!! + + TestClass tc = TestClass(); + tc.setTestValue(13); + + cout << "A value from TestClass: " << tc.getTestValue() << endl; + + cout << "Finished" << endl; + return 0; +}