I am trying to write a module having multiple C++ source files. When I run make, I find that only the C++ file having the name same as the module name is being compiled and all others do not produce any object file. As a result when I run FS I get linker error. Can anyone tell me how to get them compiled too? Thanks, Farhan
Have you updated the Makefile to build the other files? /Peter ________________________________________ Från: freeswitch-dev-bounces@lists.freeswitch.org [freeswitch-dev-bounces@lists.freeswitch.org] för Farhan Husain [farhan.husain@csebuet.org] Skickat: den 26 augusti 2010 07:27 Till: FreeSWITCH Users Help; freeswitch-dev@lists.freeswitch.org Ämne: [Freeswitch-dev] Module written in C++ I am trying to write a module having multiple C++ source files. When I run make, I find that only the C++ file having the name same as the module name is being compiled and all others do not produce any object file. As a result when I run FS I get linker error. Can anyone tell me how to get them compiled too? Thanks, Farhan !DSPAM:4c75fc8232934761421429!
I just got the solution from Math at the IRC channel. Here is the link to the solution he gave me: http://pastebin.freeswitch.org/13727 On Thu, Aug 26, 2010 at 12:36 AM, Peter Olsson < peter.olsson@visionutveckling.se> wrote:
Have you updated the Makefile to build the other files?
/Peter ________________________________________ Från: freeswitch-dev-bounces@lists.freeswitch.org [ freeswitch-dev-bounces@lists.freeswitch.org] för Farhan Husain [ farhan.husain@csebuet.org] Skickat: den 26 augusti 2010 07:27 Till: FreeSWITCH Users Help; freeswitch-dev@lists.freeswitch.org Ämne: [Freeswitch-dev] Module written in C++
I am trying to write a module having multiple C++ source files. When I run make, I find that only the C++ file having the name same as the module name is being compiled and all others do not produce any object file. As a result when I run FS I get linker error. Can anyone tell me how to get them compiled too?
Thanks, Farhan !DSPAM:4c75fc8232934761421429!
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
I'll just copy and paste that for the archives / my own records... 1. BASE=../../../.. 2. LOCAL_CFLAGS=-Wall -Werror 3. LOCAL_LDFLAGS= 4. LOCAL_OBJS=file.o file2.o file3.o 5. 6. local_depend: $(LOCAL_OBJS) 7. 8. include $(BASE)/build/modmake.rules -Steve On 26 August 2010 06:58, Farhan Husain <farhan.husain@csebuet.org> wrote:
I just got the solution from Math at the IRC channel. Here is the link to the solution he gave me: http://pastebin.freeswitch.org/13727
On Thu, Aug 26, 2010 at 12:36 AM, Peter Olsson < peter.olsson@visionutveckling.se> wrote:
Have you updated the Makefile to build the other files?
/Peter ________________________________________ Från: freeswitch-dev-bounces@lists.freeswitch.org [ freeswitch-dev-bounces@lists.freeswitch.org] för Farhan Husain [ farhan.husain@csebuet.org] Skickat: den 26 augusti 2010 07:27 Till: FreeSWITCH Users Help; freeswitch-dev@lists.freeswitch.org Ämne: [Freeswitch-dev] Module written in C++
I am trying to write a module having multiple C++ source files. When I run make, I find that only the C++ file having the name same as the module name is being compiled and all others do not produce any object file. As a result when I run FS I get linker error. Can anyone tell me how to get them compiled too?
Thanks, Farhan !DSPAM:4c75fc8232934761421429!
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
no... dont keep it for YOUR archives.. put it on the wiki.. ( and post the url here please ) J On Thu, Aug 26, 2010 at 4:23 PM, Steven Ayre <steveayre@gmail.com> wrote:
I'll just copy and paste that for the archives / my own records...
BASE=../../../.. LOCAL_CFLAGS=-Wall -Werror LOCAL_LDFLAGS= LOCAL_OBJS=file.o file2.o file3.o
local_depend: $(LOCAL_OBJS)
include $(BASE)/build/modmake.rules
-Steve
On 26 August 2010 06:58, Farhan Husain <farhan.husain@csebuet.org> wrote:
I just got the solution from Math at the IRC channel. Here is the link to the solution he gave me: http://pastebin.freeswitch.org/13727
On Thu, Aug 26, 2010 at 12:36 AM, Peter Olsson <peter.olsson@visionutveckling.se> wrote:
Have you updated the Makefile to build the other files?
/Peter ________________________________________ Från: freeswitch-dev-bounces@lists.freeswitch.org [freeswitch-dev-bounces@lists.freeswitch.org] för Farhan Husain [farhan.husain@csebuet.org] Skickat: den 26 augusti 2010 07:27 Till: FreeSWITCH Users Help; freeswitch-dev@lists.freeswitch.org Ämne: [Freeswitch-dev] Module written in C++
I am trying to write a module having multiple C++ source files. When I run make, I find that only the C++ file having the name same as the module name is being compiled and all others do not produce any object file. As a result when I run FS I get linker error. Can anyone tell me how to get them compiled too?
Thanks, Farhan !DSPAM:4c75fc8232934761421429!
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Sincerely Jay
I added it in the wiki here: http://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Customizing_Inc... On Thu, Aug 26, 2010 at 6:19 PM, jay binks <jaybinks@gmail.com> wrote:
no... dont keep it for YOUR archives..
put it on the wiki.. ( and post the url here please )
J
On Thu, Aug 26, 2010 at 4:23 PM, Steven Ayre <steveayre@gmail.com> wrote:
I'll just copy and paste that for the archives / my own records...
BASE=../../../.. LOCAL_CFLAGS=-Wall -Werror LOCAL_LDFLAGS= LOCAL_OBJS=file.o file2.o file3.o
local_depend: $(LOCAL_OBJS)
include $(BASE)/build/modmake.rules
-Steve
On 26 August 2010 06:58, Farhan Husain <farhan.husain@csebuet.org> wrote:
I just got the solution from Math at the IRC channel. Here is the link
to
the solution he gave me: http://pastebin.freeswitch.org/13727
On Thu, Aug 26, 2010 at 12:36 AM, Peter Olsson <peter.olsson@visionutveckling.se> wrote:
Have you updated the Makefile to build the other files?
/Peter ________________________________________ Från: freeswitch-dev-bounces@lists.freeswitch.org [freeswitch-dev-bounces@lists.freeswitch.org] för Farhan Husain [farhan.husain@csebuet.org] Skickat: den 26 augusti 2010 07:27 Till: FreeSWITCH Users Help; freeswitch-dev@lists.freeswitch.org Ämne: [Freeswitch-dev] Module written in C++
I am trying to write a module having multiple C++ source files. When I run make, I find that only the C++ file having the name same as the
module
name is being compiled and all others do not produce any object file. As a result when I run FS I get linker error. Can anyone tell me how to get them compiled too?
Thanks, Farhan !DSPAM:4c75fc8232934761421429!
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Sincerely
Jay
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
That place was not appropriate for the text so I moved it here: http://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Working_with_mu... On Fri, Aug 27, 2010 at 12:43 AM, Farhan Husain <farhan.husain@csebuet.org>wrote:
I added it in the wiki here: http://wiki.freeswitch.org/wiki/Authoring_Freeswitch_Modules#Customizing_Inc...
On Thu, Aug 26, 2010 at 6:19 PM, jay binks <jaybinks@gmail.com> wrote:
no... dont keep it for YOUR archives..
put it on the wiki.. ( and post the url here please )
J
On Thu, Aug 26, 2010 at 4:23 PM, Steven Ayre <steveayre@gmail.com> wrote:
I'll just copy and paste that for the archives / my own records...
BASE=../../../.. LOCAL_CFLAGS=-Wall -Werror LOCAL_LDFLAGS= LOCAL_OBJS=file.o file2.o file3.o
local_depend: $(LOCAL_OBJS)
include $(BASE)/build/modmake.rules
-Steve
On 26 August 2010 06:58, Farhan Husain <farhan.husain@csebuet.org> wrote:
I just got the solution from Math at the IRC channel. Here is the link
to
the solution he gave me: http://pastebin.freeswitch.org/13727
On Thu, Aug 26, 2010 at 12:36 AM, Peter Olsson <peter.olsson@visionutveckling.se> wrote:
Have you updated the Makefile to build the other files?
/Peter ________________________________________ Från: freeswitch-dev-bounces@lists.freeswitch.org [freeswitch-dev-bounces@lists.freeswitch.org] för Farhan Husain [farhan.husain@csebuet.org] Skickat: den 26 augusti 2010 07:27 Till: FreeSWITCH Users Help; freeswitch-dev@lists.freeswitch.org Ämne: [Freeswitch-dev] Module written in C++
I am trying to write a module having multiple C++ source files. When I run make, I find that only the C++ file having the name same as the
module
name is being compiled and all others do not produce any object file. As a result when I run FS I get linker error. Can anyone tell me how to get them compiled too?
Thanks, Farhan !DSPAM:4c75fc8232934761421429!
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Sincerely
Jay
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (4)
-
Farhan Husain
-
jay binks
-
Peter Olsson
-
Steven Ayre