To build the library Shared Object using makefile under linux?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
16 views
Need help! Tell me, please

You need to gather the dll under Linux.
Code is written in C++ in visual studio. Create two files, text and binary, yet the data populate itself.
The following is the code:
struct.h
#include struct Station { std::string station_name; std::string rec_dew; std::string year; }; struct InfaboutChanell { int chanellcount; int analogChanell; int discretChanell; }; struct InfAnalogChanel { int id; std::string chanell_id; std:: string ph; std::string ccmb; std::string UU; long float a; double b; double skew; double min; double max; double Primery; double Secondary; std::string SP; }; struct InfDiscretChanel { int DN; std::string ch_id; std::string ph; std::string ccmb; int y; }; struct GeneralInf { ifone int; int nrates; int samp; int ensamp; };


makefile.cpp
// Struct.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include #include "struct.h" using namespace std; int main() { //The first string struct Station station; station.station_name="251 Strathmore kV"; station.rec_dew = "1"; station.year="2001"; ofstream file("fileConfiguration.cfg"); file< s; InfAnalogChanel a; InfAnalogChanel b; InfAnalogChanel c; InfAnalogChanel d; InfAnalogChanel e; InfAnalogChanel f; a.id=1; a.chanell_id="current f"; a.ph="; a.ccmb="; a.UU="A"; a.a=1.290489 E-01; a.b=0; a.skew=0; a.min=-32767; a.max=32767; a.Primery=3000.00000000; a.Secondary=1.00000000; a.SP="P"; b.id=2; b.chanell_id="current"; b.ph="; b.ccmb="; b.UU="A"; b.a=5.139708 E-02; b.b=0; b.skew=0; b.min=-32767; b.max=32767; b.Primery=3000.00000000; b.Secondary=1.00000000; b.SP="P"; c.id=3; c.chanell_id="current phase C"; c.ph="; c.ccmb="; c.UU="A"; c.a=7.745668 E-02; c.b=0; c.skew=0; c.min=-32767; c.max=32767; c.Primery=3000.00000000; c.Secondary=1.00000000; c.SP="P"; e.id=4; e.chanell_id="rascit zero"; e.ph="; e.ccmb="; e.UU="A"; e.a=4.860763 E-02; e.b=0; e.skew=0; e.min=-32767; e.max=32767; e.Primery=3000.00000000; e.Secondary=1.00000000; e.SP="P"; d.id=5; d.chanell_id="eg"; d.ph="; d.ccmb="; d.UU="V"; d.a=2.611292 E+00; d.b=0; d.skew=0; d.min=-32767; d.max=32767; d.Primery=60000.00000000; d.Secondary=57.00000000; d.SP="P"; f.id=6; f.chanell_id="eg"; f.ph="; f.ccmb="; f.UU="V"; f.a=2.621923 E+00; f.b=0; f.skew=0; f.min=-32767; f.max=32767; f.Primery=60000.00000000; f.Secondary=57.00000000; f.SP="P"; s.push_back(a); s.push_back(b); s.push_back(c); s.push_back(e); s.push_back(d); s.push_back(f); for(int i=0;i discret; InfDiscretChanel first; InfDiscretChanel sec; InfDiscretChanel thre; InfDiscretChanel four; InfDiscretChanel five; InfDiscretChanel six; InfDiscretChanel seven; InfDiscretChanel eight; first.DN=1; first.ch_id = "Slave MTW"; first.ph="; first.ccmb="; first.y=0; sec.DN=2; sec.ch_id = "3_3"; sec.ph="; sec.ccmb="; sec.y=0; thre.DN=3; thre.ch_id = "8_8"; thre.ph="; thre.ccmb="; thre.y=0; four.DN=4; four.ch_id = "8_100"; four.ph="; four.ccmb="; four.y=0; five.DN=5; five.ch_id = "3_8"; five.ph="; five.ccmb="; five.y=0; six.DN=6; six.ch_id = "3_8"; six.ph="; six.ccmb="; six.y=0; seven.DN=7; seven.ch_id = "29"; seven.ph="; seven.ccmb="; seven.y=0; eight.DN=8; eight.ch_id = "41"; eight.ph="; eight.ccmb="; eight.y=0; discret.push_back(first); discret.push_back(sec); discret.push_back(thre); discret.push_back(four); discret.push_back(five); discret.push_back(six); discret.push_back(seven); discret.push_back(eight); for(int i=0;i time; DateTime samp; DateTime endsamp; samp.dd = 24; samp.mm=10; samp.yyyy=2017; samp.hh=10; samp.min=55; samp.sec=14.546459; endsamp.dd = 24; endsamp.mm=10; endsamp.yyyy=2017; endsamp.hh=10; endsamp.min =55; endsamp.sec =14.647162; time.push_back(samp); time.push_back(endsamp); for(int i=0;i


Please explain what to do. Can't find the right available examples( I Really want to understand
by | 16 views

1 Answer

0 like 0 dislike
dll under Linux to collect nepoluchitsya.
You can collect only so (Shared Object) library.
\rgernotklingler.com/blog/creating-using-shared-libr...

And well, it's very easy to Google
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users