NO

Author Topic: Same sources  (Read 3716 times)

andre.goncalves

  • Guest
Same sources
« on: January 06, 2017, 01:53:58 AM »
How can I use the same sources in projects 32 and 64?

Thanks for the help.

CLR

  • Guest
Re: Same sources
« Reply #1 on: January 06, 2017, 02:03:09 AM »
Hello.

- Create 2 projects. One for 32 and the other for 64.
- Add the same sources to the projects.


Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Same sources
« Reply #2 on: January 06, 2017, 10:53:22 AM »
In smaller projects you can use this Add-In in poide64.exe.
« Last Edit: January 06, 2017, 01:42:53 PM by TimoVJL »
May the source be with you

andre.goncalves

  • Guest
Re: Same sources
« Reply #3 on: January 06, 2017, 10:31:02 PM »
I want to use a single sources folder in one project 32 and another 64.
The IDE does not allow you to create two projects in the same folder so I have to create two separate projects. I want to then access a single folder of sources.
I tried to do this but IDE is not allowing you to include sources from another folder other than the project.

Something I did not see?

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Same sources
« Reply #4 on: January 07, 2017, 10:19:19 AM »
You can have several project files (.ppj) in same folder and in PellesC 8 project sources must be in same or folders below that folder.
Use project workspace to keep together those project files.

For example:
hello_workspace includes hello.ppj and hello64.ppj and common source for project is hello.c or src/hello.c

Problems is that target exe/dll/lib name and output folder must be different, if you don't want to build whole 32/64 project every time.


May the source be with you

andre.goncalves

  • Guest
Re: Same sources
« Reply #5 on: January 08, 2017, 12:59:20 AM »
I created in the workspace the two projects (32 and 64) renaming in ppj the outputs for output32 and output64. A sources folder that serves both projects and a folder to include by changing their project options.

This was the first time I talked to people from forums. Really enjoyed. Nice to meet you.

Thank you very much for your attention and help.