Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - multiple definition of 'main ' error......: (3 Items)
   
multiple definition of 'main ' error......  
i am attaching my code they are not separate  programs but separate  processes , because i have to write and read from 
same memory llocation. There is only one  main in each process so y it is showing error,please suggest me some solution.

thanks in advance.... 
Attachment: Text shmcreator.c 3.25 KB
RE: multiple definition of 'main ' error......  
You need to do some reading to understand the basic concept of programs/process/thread and shared memory.

In a nut shell because you are using SHARED-memory it`s ok to use two programs. That is what SHARED memory is for.

-----Message d'origine-----
De : pooja chahal [mailto:community-noreply@qnx.com] 
Envoyé : Monday, November 05, 2012 7:06 AM
À : momentics-community
Objet : multiple definition of 'main ' error......

i am attaching my code they are not separate  programs but separate  processes , because i have to write and read from 
same memory llocation. There is only one  main in each process so y it is showing error,please suggest me some solution.

thanks in advance.... 



_______________________________________________

QNX Momentics Community Support
http://community.qnx.com/sf/go/post96835
To cancel your subscription to this discussion, please e-mail momentics-community-unsubscribe@community.qnx.com
Re: multiple definition of 'main ' error......  
Why don't you split the code to separate source code files?