Greetings all,

Please refer to image at:
http://i26.tinypic.com/fm2oas.jpg

In my project, I have two subprojects , one is 'mainapp' which is the executable and 'libSequential' which is a shared library.
I have declared and implemented some classes in 'mainapp' project (TrainData,TrainDaraRow,TrainDataRowCell)

'mainapp' loads 'libSequential' dynamically and invoke methods in it. (illustrated in codesnippet in blue)

'libSequential' includes the headers from 'mainapp' ,but when building, it does not link the object files of the classes (TrainData.o,TrainDataRow.so,TrainDataRowCell.o).

So , my problem is eventhough 'libSequential' compiles , during runtime ,that is when 'mainapp' tries to load, it gives 'undenifed symbol' error.
I dont want to link object files with 'libSequential' because I think it is reduntant(since they are inside 'mainapp')
Is there a way for 'libSequential.so' to use the object files in 'mainapp'?

Thanks in advance.