Re: library compilation undefined reference to extern function

2016-03-06 Thread René Berber
On 3/6/2016 4:27 PM, Azatyan, Anushavan wrote: [snip] > #include > using namespace std; > extern void foo(void); > int main() > { > cout<<" Print "; > foo(); > return 0; > } > > a very simple example I can compile in linux (Ubuntu) without any problem, but in cygwin it go

library compilation undefined reference to extern function

2016-03-06 Thread Azatyan, Anushavan
Hi, I am compiling a huge library, which is written and compiled under Ubuntu, I have fixed some problems to get it compiled in cygwin. The main() function is inside library. I stopped in some point which goes different in cygwin. I have some functions which are declared as - extern void func(vo