I'm trying to compile a C++ source file that includes the following file: #include "public.sdk/source/vst2.x/audioeffectx.h"
When I try to compile, I get the following error: In file included from /Users/martin/Desktop/vstsdk2.4/public.sdk/samples/vst2.x/again/source/again.cpp:13: /Users/martin/Desktop/vstsdk2.4/public.sdk/samples/vst2.x/again/source/again.h:16:51: error: public.sdk/source/vst2.x/audioeffectx.h: No such file or directory
Looks like g++ can't find the audioeffectx.h. How can I set up TextMate to tell g++ that it should look in "/Users/martin/Desktop/vstsdk2.4/"?
Let me guess.
Try to include #include "../../../../public.sdk/source/vst2.x/audioeffectx.h"
I didn't work with C for some time, but I think the path should be relative to the source (or to the makefile? I am not sure)
Karel
Odesláno z iPhone
23.10.2010 v 23:36, timewastin declassified@web.de:
Thank you for trying to help. However, it's not a solution to my problem. The audioeffectx.h itself links to a lot of other files in the same way, and of course I can't change all the files. I need to add the "public.sdk" to the list of library search paths, like an environment variable.
Any other suggestions? :)
kaja wrote:
Let me guess.
Try to include #include "../../../../public.sdk/source/vst2.x/audioeffectx.h"
I didn't work with C for some time, but I think the path should be relative to the source (or to the makefile? I am not sure)
Karel
Odesláno z iPhone
23.10.2010 v 23:36, timewastin declassified@web.de:
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Are you using a Makefile?
Include paths can be defined in gcc via
gcc yourfile.c -I/path/to/your/include/files
(capital i)
Cheers, Nick
Am 24.10.2010 um 11:10 schrieb timewastin:
Thank you for trying to help. However, it's not a solution to my problem. The audioeffectx.h itself links to a lot of other files in the same way, and of course I can't change all the files. I need to add the "public.sdk" to the list of library search paths, like an environment variable.
Any other suggestions? :)
kaja wrote:
Let me guess.
Try to include #include "../../../../public.sdk/source/vst2.x/audioeffectx.h"
I didn't work with C for some time, but I think the path should be relative to the source (or to the makefile? I am not sure)
Karel
Odesláno z iPhone
23.10.2010 v 23:36, timewastin declassified@web.de:
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- View this message in context: http://old.nabble.com/Setting-C%2B%2B-Include-Paths-tp30037571p30039465.html Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I would recommend you to first use a Makefile (or alternatively an Xcode project) and make a new command in textmate that just runs the Makefile from the right directory. If you configure your project using XCode, then textmate as built-in support for building Xcode project. Your problem is not really related to textmate. You first need to have a compilation environment working and then launch the building script from textmate.
On Oct 24, 2010, at 11:10 AM, timewastin wrote:
Thank you for trying to help. However, it's not a solution to my problem. The audioeffectx.h itself links to a lot of other files in the same way, and of course I can't change all the files. I need to add the "public.sdk" to the list of library search paths, like an environment variable.
Any other suggestions? :)
kaja wrote:
Let me guess.
Try to include #include "../../../../public.sdk/source/vst2.x/audioeffectx.h"
I didn't work with C for some time, but I think the path should be relative to the source (or to the makefile? I am not sure)
Karel
Odesláno z iPhone
23.10.2010 v 23:36, timewastin declassified@web.de:
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- View this message in context: http://old.nabble.com/Setting-C%2B%2B-Include-Paths-tp30037571p30039465.html Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 24 Oct 2010, at 11:28, Romain Pechayre wrote:
I would recommend you to first use a Makefile (or alternatively an Xcode project) and make a new command in textmate that just runs the Makefile from the right directory.
If you go with a Makefile I recommend: https://github.com/textmate/make.tmbundle
If you stay with command R then you can set the TM_CXX_FLAGS variable to include the proper -I option.
See http://manual.macromates.com/en/environment_variables#static_variables for where to set variables.